Cargo build-system generation
Treat Cargo as the selected build system for the Rust Component. Generate a conventional
package rooted at source/Cargo.toml, with Rust sources beneath source/src/ and one
[[bin]] named litai_artifact. Do not write source/Cargo.lock; declare registry intent
in the manifest and source SBOM, and let the authorized lifecycle generate the complete
lock in a disposable build projection. Keep the package compatible with
cargo metadata --locked --format-version=1 and
cargo build --locked --bin litai_artifact after that resolution.
The framework supplies CARGO_TARGET_DIR outside the admitted generated tree. Do not set
a target directory in project configuration, vendor package caches into source, add path
or Git dependencies, or run a command that rewrites the lock. The produced binary is the
Standard artifact and must implement --litai-test and --litai-smoke; this bounded
executable profile does not require a separate cargo test invocation. For a
kind: library Component, the package is the exported artifact and the binary is
its attributable test driver. Its generated targets must also pass
cargo test --locked --all-targets before the Standard --litai-test check;
passing native targets is additional evidence, not independent library acceptance.