Development
Building GSET
Build, test, and lint commands for contributors.
Requirements: Rust from rust-toolchain.toml (1.98.1). The workspace toolchain is pinned.
Build
cargo build --workspace # debug
cargo build --release --workspaceThe binary is target/release/gset — the installed name is gset, not gset-cli, and packaging preserves it.
The full CI suite
Every check must pass; CI runs exactly these:
cargo build --workspace --all-targets
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all -- --check
cargo deny checkcargo-audit is deliberately not used — cargo deny check advisories reads the same RustSec advisory database.
The M1 gate
cargo run -p gset-cli -- transpile tests/corpus/py/fib.py --to go -o /tmp/fib.go
gofmt -e /tmp/fib.go # clean
go vet /tmp/fib.go # cleanThis is the milestone gate that proves the cross-language pipeline end to end.
Grammars are features
The python frontend is behind a Cargo feature. Verify feature-gating with:
cargo build --no-default-features # no grammar linkedSmoke test after a change
cargo run -p gset-cli -- transpile tests/corpus/py/fib.py -t go
cargo run -p gset-cli -- run tests/corpus/py/fib.py -t go # 55GSET_DEBUG=1 gives verbose logs to stderr.