Skip to main content

rimelabs_api/
lib.rs

1//! Rime protocol types generated from the canonical Protobuf definitions.
2//!
3//! The default `grpc` feature includes Tonic clients and servers. Disable it
4//! when only message encoding is needed. Serde uses the Protobuf JSON mapping.
5#![forbid(unsafe_code)]
6#![doc = include_str!("../README.md")]
7
8/// Google RPC status messages referenced by the speech protocol.
9pub mod google {
10    /// Structured RPC status.
11    // Generator output can trigger new Clippy lints on newer toolchains.
12    #[allow(clippy::all)]
13    pub mod rpc {
14        include!("generated/google.rpc.rs");
15        include!("generated/google.rpc.serde.rs");
16    }
17}
18
19/// Text-to-speech and speech-to-text messages and gRPC services.
20// Keep style lints on handwritten code, not on pinned generator output.
21#[allow(clippy::all)]
22pub mod rime {
23    include!("generated/rime.rs");
24    include!("generated/rime.serde.rs");
25}
26
27pub use rime::*;