boon-proto 0.1.0

Protobuf definitions for Deadlock demo files
Documentation

boon-proto

crates.io docs.rs License: MIT

Pre-generated Rust types for Deadlock's protobuf definitions, used by the Boon demo parser.

Overview

This crate contains auto-generated Rust code produced by prost from Valve's .proto files shipped with Deadlock. The generated output lives in src/proto.rs and is checked into version control so that downstream crates can build without needing protoc.

Installation

[dependencies]
boon-proto = "0.1"

Usage

use boon_proto::proto;

// Access Deadlock protobuf message types
let header = proto::CDemoFileHeader::default();
let event = proto::CCitadelUserMsgHeroKilled::default();

Regenerating

When upstream .proto files change (e.g. after a Deadlock update), regenerate using the scripts in the Boon repository:

# Fetch latest protos from SteamDatabase
./scripts/sync-protos.sh

# Regenerate src/proto.rs
cargo run --manifest-path scripts/build-protos/Cargo.toml --bin build-boon-protos

Version tracking

The [package.metadata.boon-proto] section in Cargo.toml records the Deadlock client/server version the protos were extracted from.

License

MIT — see LICENSE for details.