Skip to main content

Module script_lib

Module script_lib 

Source
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 root has Rust of its own.
lib_path
The mod’s crate root, as the generated Cargo.toml (in obj/) names it: its own src/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.