Skip to main content

wesl_pkg

Macro wesl_pkg 

Source
macro_rules! wesl_pkg {
    ($(#[$attr:meta])* $vis:vis $pkg_name:ident) => { ... };
    ($(#[$attr:meta])* $vis:vis $pkg_name:ident, $source:expr) => { ... };
}
Expand description

Include a generated package.

Generates a module containing the code generated by the packager.

See wesl::PackageBuilder for more information about building WESL packages.

ⓘ
// Load package in `OUT_DIR/my_package.rs`
wesl_pkg!(my_package);

// make module `pub`
wesl_pkg!(pub my_package);

// add module attributes
wesl_pkg!(#[allow(clippy::all)] pub my_package);