forked from lavina/lavina
1
0
Fork 0
lavina/crates/inner-api/src/lib.rs

14 lines
347 B
Rust
Raw Normal View History

2023-12-13 14:57:49 +00:00
use prost::Message;
pub mod proto {
use prost::Message;
include!(concat!(env!("OUT_DIR"), "/lavina.rs"));
#[test]
fn test_encode_get_nodes() {
let mut buf = vec![];
HandshakeRequest { node_id: 1, address: "kek".into() } .encode(&mut buf).unwrap();
assert_eq!(&buf, &[8, 1, 18, 3, 107, 101, 107]);
}
}