mirror of
https://codeberg.org/steam-vent/proto.git
synced 2026-06-03 10:14:08 +02:00
Protobufs for steam-vent
- Rust 100%
| .forgejo/workflows | ||
| build | ||
| common | ||
| src | ||
| steam | ||
| .envrc | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
Protobufs for steam-vent
Sourced from https://github.com/SteamDatabase/Protobufs
Updating generated code
cd build
cargo r -- ../steam/{protos,src/generated}
cargo r -- ../../proto-csgo/{protos,src/generated}
cargo r -- ../../proto-dota2/{protos,src/generated}
cargo r -- ../../proto-tf2/{protos,src/generated}
Using custom protobufs
If you need to use protobufs that aren't packages by steam-vent, you can create a new package for the protobufs using the following steps:
-
Create a new crate
-
Add
steam-vent-proto-commonas a dependency -
Place the protobufs in
src/protos -
Create an empty
src/generatedfolder -
Either install
steam-vent-proto-buildtroughcargo-installor clone this repo and build it from thebuilddirectory. -
Run
steam-vent-proto-build path/to/src/protos path/to/src/generated -
Create
src/lib.rswith the following contents:mod generated; pub use generated::*;