Skip to main content

Crate serve_build

Crate serve_build 

Source
Expand description

build.rs helper for serve (experimental), part of the Everruns ecosystem.

Rust cannot scan the filesystem at runtime the way eve does, so the file layout is captured at build time instead: every file under agent/ (the always-on instructions.md, skills/<name>/SKILL.md, …) and the app’s serve.toml are embedded into the binary. The binary is then the complete behavior; cargo run -- dev still re-reads the same files from disk so Markdown edits hot-reload without a rebuild.

// Inside `fn main` of the app's build.rs:
serve_build::embed();

and once in main.rs: serve::assets!();

Constants§

GENERATED
Name of the generated file in OUT_DIR, included by serve::assets!().

Functions§

embed
Embed agent/** and serve.toml from the crate being built.
generate
Produce the Rust source registering every embedded asset.