Skip to content

Latest commit

 

History

History

awpy-proto

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

awpy-proto

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.toml

Do not edit src/proto.rs by hand.

Check for updates

Run this command from the workspace root:

./scripts/sync-protos.sh --check

The 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.toml

Part of the Awpy workspace.

License

MIT