build: move nonoka and nonoka-bevy inside a workspace

* chore(gitignore): ignore .cargo directory
This commit is contained in:
Mohammed Amar-Bensaber 2024-12-07 19:32:47 +01:00
parent 568fad35d7
commit 1502bf8eb3
Signed by: renken
GPG key ID: 1F2BB159B645E575
12 changed files with 35 additions and 3 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/.cargo
/target

4
Cargo.lock generated
View file

@ -32,6 +32,10 @@ dependencies = [
"rand_chacha",
]
[[package]]
name = "nonoka-bevy"
version = "0.1.0"
[[package]]
name = "ppv-lite86"
version = "0.2.16"

View file

@ -1,10 +1,16 @@
[package]
name = "nonoka"
[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["Mohammed Amar-Bensaber <renken@shione.net>"]
license = "AGPL-3.0-only"
[dependencies]
[workspace]
members = [
"nonoka",
"nonoka-bevy",
]
resolver = "2"
[workspace.dependencies]
rand = "0.8.5"
rand_chacha = "0.3.1"

8
nonoka-bevy/Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[package]
name = "nonoka-bevy"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
[dependencies]

10
nonoka/Cargo.toml Normal file
View file

@ -0,0 +1,10 @@
[package]
name = "nonoka"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
[dependencies]
rand = { workspace = true }
rand_chacha = { workspace = true }

3
nonoka/src/main.rs Normal file
View file

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