Skip to main content

Crate component_macro

Crate component_macro 

Source
Expand description

Procedural macros for the component initialization system.

Provides #[init_component] for registering kernel component init functions and parse_components_toml! for compile-time access to Components.toml.

Macrosยง

parse_components_toml
Emit compile-time dependency metadata parsed from Components.toml.

Structsยง

InitComponentArgs ๐Ÿ”’
Parsed arguments for #[init_component(stage, priority = N, depends_on = fn_or_list)].

Functionsยง

parse_depends_on ๐Ÿ”’
Parse fn_name or [fn1, fn2, ...] after depends_on =.
parse_toml_deps ๐Ÿ”’
Minimal parser for the Components.toml format used by Strat9-OS.

Attribute Macrosยง

init_component
Register a function as a kernel component initializer.