rust_hls_macro 0.2.0

High level synthesis support for rust-hdl
Documentation
/// Nested modules should not be supported
use rust_hls::hls;

#[hls]
pub mod adder {
    #[hls]
    pub extern "C" fn adder(a: u32, b: u32) -> u32 {
        a + b
    }

    #[hls]
    pub mod other {
        #[hls]
        pub extern "C" fn other(a: u32, b: u32) -> u32 {
            a + b
        }
    }
}

fn main() {}