Expand description
The crate root yog build writes for a mod without Rust of its own
(src/lib.rs): its code is Yog Script, and the native it still has
registers what the content files say.
Functions§
- has_
rust - Whether the mod at
roothas Rust of its own. - lib_
path - The mod’s crate root, as the generated
Cargo.toml(inobj/) names it: its ownsrc/lib.rs, or the generated one. - root_
file - The generated root’s file in the mod at
root(what cleaning up generated code leaves alone). - write
- Writes the generated root when the mod has no
src/lib.rs(only when it changed);content: whether the build generated content code.