Expand description
yog publish exports — the -exports crate generated from a mod’s
#[yog_export] items.
Structs§
- Crate
Meta - What the exports crate’s
Cargo.tomlsays. - Export
Item - Item found by the export scanner.
Enums§
- Export
Kind - What a
#[yog_export]item is.
Functions§
- cargo_
toml - The exports crate’s
Cargo.toml. - collect_
rs_ files - Recursively collect every
.rsfile underdir, so#[yog_export]items can live in any module/subfolder — not just flat files directly insrc/. - collect_
uses - Collect the imports a generated exports crate needs.
- generate_
fn_ wrapper - lib_rs
- The exports crate’s
src/lib.rs: the imports fromcollect_uses, structs and enums with rkyv derives so consumers get the serialisable types, and an interop wrapper per fn (the same pattern asimport!). - scan
- Every
#[yog_export]item of one source file (inline modules too), read withsyn: its exact text — comments, layout — without the#[yog_export]attribute itself. A file that doesn’t parse has none (the build reports it). - strip_
derive_ attrs - Strip
#[derive(...)]lines from a Rust source item to avoid duplicates when the generator adds its own derives.