diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..0195b83 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "nexus-common" +version = "0.1.0" +authors = ["Malek , Marceline Cramer "] +edition = '2021' +description = "nexus-common is a shared library for nexus-client and nexus-server." +repository = "https://git.tebibyte.media/nexus" +license = "MIT" +publish = false #we don't wanna publish yet + +[dependencies] +serde_json = "1.0.82" +serde = {version = "1.0.140", features = ["derive"]} +bevy = "0.7.0" + +[workspace] +members = ["server", "client"] diff --git a/client/Cargo.toml b/client/Cargo.toml new file mode 100644 index 0000000..978d248 --- /dev/null +++ b/client/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "nexus-client" +version = "0.1.0" +authors = ["Malek ", "Marceline Cramer "] +edition = '2021' +description = "A client for nexus" +license = "MIT" +repository = "https://git.tebibyte.media/nexus" +publish = false #nope + +[dependencies] +bincode = "2.0.0-rc.1" +nexus-common = { path = ".." } +serde_json = "1.0.82" +crossbeam-channel = "0.5.6" +bevy = "0.7.0" +color-eyre = "0.6.2" +bytes = "1.2.0" +tokio = { version = "1.20.0", features = ["full"] } +qp2p = "0.28.7" \ No newline at end of file diff --git a/client/src/main.rs b/client/src/main.rs new file mode 100644 index 0000000..970d366 --- /dev/null +++ b/client/src/main.rs @@ -0,0 +1,3 @@ +pub fn main() { + println!("hello world!") +} diff --git a/server/Cargo.toml b/server/Cargo.toml new file mode 100644 index 0000000..0921368 --- /dev/null +++ b/server/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "nexus-server" +version = "0.1.0" +authors = ["Malek ", "Marceline Cramer "] +edition = '2021' +description = "A server implemntation for nexus" +repository = "https://git.tebibyte.media/nexus" +license = "MIT" +publish = false #nope + +[dependencies] +qp2p = "0.28.7" +tokio = {version = "1.20.0", features = ["full"]} +bytes = "1.2.0" +color-eyre = "0.6.2" +bevy = "0.7.0" +crossbeam-channel = "0.5.6" +serde_json = "1.0.82" +nexus-common = { path = ".."} +bincode = "2.0.0-rc.1" diff --git a/server/src/main.rs b/server/src/main.rs new file mode 100644 index 0000000..c63759b --- /dev/null +++ b/server/src/main.rs @@ -0,0 +1,3 @@ +pub fn main() { + println!("hello world!"); +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..9280a78 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1 @@ +//this is a lib