Print simple HelloCmd packet
This commit is contained in:
parent
0c9f5e91a3
commit
5cf0f76477
5 changed files with 121 additions and 7 deletions
|
|
@ -1,3 +1,12 @@
|
|||
use cove_core::{Data, HelloCmd, Packet};
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
let packet = Packet {
|
||||
id: 1337,
|
||||
data: Data::HelloCmd(HelloCmd {
|
||||
name: "Garmy".to_string(),
|
||||
}),
|
||||
};
|
||||
println!("{}", serde_json::to_string(&packet).unwrap());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue