Changed version and main file

This commit is contained in:
2025-08-12 19:29:12 -04:00
parent 438c857be2
commit 7aa69c6ea9
3 changed files with 3 additions and 13 deletions
Generated
+1 -1
View File
@@ -4,4 +4,4 @@ version = 4
[[package]]
name = "ghostnet-rs"
version = "0.1.0"
version = "0.0.1-alpha"
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "ghostnet-rs"
version = "0.1.0"
version = "0.0.1-alpha"
edition = "2024"
[[bin]]
+1 -11
View File
@@ -1,13 +1,3 @@
use ghostnet_rs::GhostStream;
fn main() {
let mut stream = GhostStream::connect((0, 0, 0, 0), 7525).unwrap();
stream.write("Hello, World".as_bytes()).unwrap();
let mut data = [0; 12];
let data_len = stream.read(&mut data).unwrap();
if data_len == 0 {
return;
}
println!("From server: {}", String::from_utf8(data.to_vec()).unwrap());
ghostnet_rs::gateway::run().unwrap();
}