Skip to main content

include_agent

Macro include_agent 

Source
macro_rules! include_agent {
    () => { ... };
}
Expand description

Include the agent that build.rs embedded: adam::include_agent!(); at module level.

build.rs calls adam_agent_fs::build("agent").emit(), which writes OUT_DIR/adam_agent.rs; this macro includes it. The module then has AGENTS (a slice of EmbeddedAgent), AGENT (the agent of an agent/ package) and PACKAGE (an EmbeddedPackage, which is a ManifestSource). See the crate docs.