Skip to main content

Crate gen_gomod

Crate gen_gomod 

Source
Expand description

gen-gomod — gomod adapter for the gen ecosystem.

Parses go.mod into a typed BuildSpec and emits it as Cargo-equivalent typed JSON. See theory/ECOSYSTEM-INTAKE.md for the seven-artifact contract.

Re-exports§

pub use adapter::GomodAdapter;
pub use error::Result;
pub use error::GomodError;

Modules§

adapter
GomodAdapter — gen-gomod’s implementation of the canonical gen_types::Adapter trait. Stub-level today; every verb returns Unsupported until the gomod-side parser lands.
build_spec
Typed build spec for gomod — mirrors nixpkgs buildGoModule kwargs so substrate’s Go-side lockfile-builder spreads the args verbatim into the builder.
error
invariants
Invariants over the gomod BuildSpec. Implements gen_types::Invariants so cse-lint + gen confirm can call into the adapter uniformly.
quirks
Typed quirk registry for gomod. Implements gen_types::QuirkRegistry via #[derive(QuirkRegistry)].