Generated prost types for CS2 demo protobufs.
The .proto sources under proto/ are synced from
GameTracking-CS2; the
allowlist in proto/allowlist.txt selects files and must include their imports.
From the workspace root, generate src/proto.rs with:
cargo run --manifest-path scripts/build-protos/Cargo.tomlDo not edit src/proto.rs by hand.
Run this command from the workspace root:
./scripts/sync-protos.sh --checkThe check compares the allowlisted files with upstream. It ignores line-ending
differences and does not change local files or versions. It exits with a nonzero
status if files differ, a local file is missing, or the check cannot finish.
Set CS2_REF to a branch, tag, or commit to check a specific revision.
CI runs the same check as Protobuf Freshness (advisory). It writes a job summary and a warning if the check fails. It does not block CI Check or releases.
To update the files and package version, then generate the Rust types, run:
./scripts/sync-protos.sh
cargo run --manifest-path scripts/build-protos/Cargo.tomlPart of the Awpy workspace.
MIT