first implementation
This commit is contained in:
29
signaling/src/lib.rs
Normal file
29
signaling/src/lib.rs
Normal file
@ -0,0 +1,29 @@
|
||||
tonic::include_proto!("signaling"); // The string specified here must match the proto package name
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
#[test]
|
||||
fn serde_serialization() {
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::to_string(&crate::SignalingMessage {
|
||||
message: Some(crate::signaling_message::Message::Bootstrap(())),
|
||||
..Default::default()
|
||||
})
|
||||
.unwrap()
|
||||
);
|
||||
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::to_string(&crate::SignalingMessage {
|
||||
message: Some(crate::signaling_message::Message::SessionOffer(
|
||||
crate::SdpMessage {
|
||||
..Default::default()
|
||||
}
|
||||
)),
|
||||
..Default::default()
|
||||
})
|
||||
.unwrap()
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user