feat(setup): basic workspace setup for development, and dependencies

This commit is contained in:
malek 2022-07-29 18:39:33 -07:00
parent 624d2d816a
commit db00616184
6 changed files with 64 additions and 0 deletions

17
Cargo.toml Normal file
View File

@ -0,0 +1,17 @@
[package]
name = "nexus-common"
version = "0.1.0"
authors = ["Malek <pocmalek@gmail.com>, Marceline Cramer <cramermarceline@gmail.com>"]
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"]

20
client/Cargo.toml Normal file
View File

@ -0,0 +1,20 @@
[package]
name = "nexus-client"
version = "0.1.0"
authors = ["Malek <pocmalek@gmail.com>", "Marceline Cramer <cramermarceline@gmail.com>"]
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"

3
client/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
pub fn main() {
println!("hello world!")
}

20
server/Cargo.toml Normal file
View File

@ -0,0 +1,20 @@
[package]
name = "nexus-server"
version = "0.1.0"
authors = ["Malek <pocmalek@gmail.com>", "Marceline Cramer <cramermarceline@gmail.com>"]
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"

3
server/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
pub fn main() {
println!("hello world!");
}

1
src/lib.rs Normal file
View File

@ -0,0 +1 @@
//this is a lib