commonware-stream 0.0.6

Exchange messages over arbitrary transport.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io::Result;
fn main() -> Result<()> {
    // Proto compilation rules for `public_key` dialect
    let mut config = prost_build::Config::new();
    config.bytes([
        "Signature.public_key",
        "Signature.signature",
        "Handshake.recipient_public_key",
        "Handshake.ephemeral_public_key",
    ]);
    config.compile_protos(&["src/public_key/wire.proto"], &["src/public_key/"])?;
    Ok(())
}