This repository contains the canonical protobuf definitions for the logoschat (Logos Chat Protocol) used by LibChat and related components.
It is schema-only:
- No application logic
- Stable, versioned wire formats
- Intended to be consumed by multiple languages
Generated bindings (e.g. Rust) are produced from these schemas.
This project uses Buf for protobuf linting and code generation.
On macOS and Linux:
brew install bufbuild/buf/bufFor other platforms, See https://buf.build/docs/cli/installation/.
protos/ # Protobuf source files
buf.yaml # Buf module configuration
buf.gen.yaml # Code generation configuration
gen/
└── rust/ # Generated Rust bindings (prost)
buf generate
This will generate Rust code under: gen/rust/, The generated crate can be used directly as a dependency in Rust projects.
Add in Cargo.toml:
chat-proto = { git = "https://github.com/logos-messaging/chat_proto" }
Example import:
use chat_proto::logoschat::{
inbox::InboxV1Frame,
invite::InvitePrivateV1,
encryption::EncryptedPayload,
};