Crate rust_hls_macro_lib

Source
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
HlsFunctionInfo
Contains information about the HLS main function
HlsModuleContentInformation

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