Expand description
A library containing support functions for rust_hls and rust_hls_macro
This basically contains all functions related to parsing the HLS macros from files. These functions are shared between the macro and the buildscript so they both parse in the same way and produce the same error messages.
This crate uses darling::Error as its error type, because that supports bundling errors and span information.
Structs§
- HlsArguments
- HlsFunction
Info - Contains information about the HLS main function
- HlsModule
Content Information
Functions§
- check_
nested_ macros - Verifies that all nested macros are correct.
- check_
super - extract_
hls_ macro - Extract rust_hls macro information from the given attributes
- find_
dependencies - find_
main_ function - Finds a HLS main function in the given content.
- is_
rust_ hls_ macro - Check if path looks like a rust_hls macro call
- make_
content_ compile - Modify the content of the HLS macro module so it is valid Rust code
- parse_
hls_ macro_ args - Parse the macro arguments.
- parse_
hls_ macro_ attribute - Try to parse a rust_hls macro from an attribute
- parse_
hls_ macro_ content - Parse the macro arguments.
- parse_
hls_ macro_ module - Parse and verify the macro content.
- remove_
hls_ macros - Removes hls macros from all ItemFns in the list
- synthesized_
module_ name - synthesized_
struct_ name