workspaced

This commit is contained in:
Alex Janka 2023-03-03 19:31:34 +11:00
parent c63ceddac1
commit ad47852f47
34 changed files with 43 additions and 37 deletions

28
Cargo.lock generated
View file

@ -425,18 +425,24 @@ name = "gb-emu"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"async-ringbuf", "async-ringbuf",
"futures",
"itertools",
"once_cell",
"rand",
"samplerate",
]
[[package]]
name = "gb-emu-bin"
version = "0.1.0"
dependencies = [
"clap", "clap",
"cpal", "cpal",
"ctrlc", "ctrlc",
"futures", "futures",
"gb-emu",
"gilrs", "gilrs",
"itertools",
"minifb", "minifb",
"once_cell",
"rand",
"ringbuf",
"samplerate",
"spin_sleep",
] ]
[[package]] [[package]]
@ -1229,16 +1235,6 @@ version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
[[package]]
name = "spin_sleep"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cafa7900db085f4354dbc7025e25d7a839a14360ea13b5fc4fd717f2d3b23134"
dependencies = [
"once_cell",
"winapi",
]
[[package]] [[package]]
name = "static_assertions" name = "static_assertions"
version = "1.1.0" version = "1.1.0"

View file

@ -1,21 +1,2 @@
[package] [workspace]
name = "gb-emu" members = ["gb-emu-lib", "gb-emu-bin"]
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = {version = "4.1.8", features = ["derive"]}
spin_sleep = "1.1.1"
minifb = "0.24"
rand = "0.8.5"
gilrs = "0.10.1"
samplerate = "0.2.4"
cpal = "0.15.0"
ringbuf = "0.3.2"
async-ringbuf = "0.1.2"
futures = "0.3.26"
once_cell = "1.17.1"
itertools = "0.10.5"
ctrlc = "3.2.5"

15
gb-emu-bin/Cargo.toml Normal file
View file

@ -0,0 +1,15 @@
[package]
name = "gb-emu-bin"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
gb-emu = { path = "../gb-emu-lib" }
clap = {version = "4.1.8", features = ["derive"]}
minifb = "0.24"
gilrs = "0.10.1"
cpal = "0.15.0"
futures = "0.3.26"
ctrlc = "3.2.5"

14
gb-emu-lib/Cargo.toml Normal file
View file

@ -0,0 +1,14 @@
[package]
name = "gb-emu"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rand = "0.8.5"
samplerate = "0.2.4"
async-ringbuf = "0.1.2"
futures = "0.3.26"
once_cell = "1.17.1"
itertools = "0.10.5"