make all the examples be their own binary crates
this achieves a few things: - trivial way to get these shipped as the default nix package - better dependency management - ability to split large applications into multiple files the README probably needs some updating.
This commit is contained in:
23
Cargo.lock
generated
23
Cargo.lock
generated
@@ -165,6 +165,15 @@ dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "buffer_proto5"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"coremem",
|
||||
"log",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bumpalo"
|
||||
version = "3.10.0"
|
||||
@@ -2107,6 +2116,13 @@ dependencies = [
|
||||
name = "spirv_backend_runner"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "sr_latch"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"coremem",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "strsim"
|
||||
version = "0.8.0"
|
||||
@@ -2371,6 +2387,13 @@ version = "0.2.81"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be"
|
||||
|
||||
[[package]]
|
||||
name = "wavefront"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"coremem",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "web-sys"
|
||||
version = "0.3.57"
|
||||
|
@@ -5,6 +5,10 @@ members = [
|
||||
"crates/spirv_backend",
|
||||
"crates/spirv_backend_builder",
|
||||
"crates/spirv_backend_runner",
|
||||
|
||||
"crates/applications/buffer_proto5",
|
||||
"crates/applications/sr_latch",
|
||||
"crates/applications/wavefront",
|
||||
]
|
||||
|
||||
# [profile.release]
|
||||
|
10
crates/applications/buffer_proto5/Cargo.toml
Normal file
10
crates/applications/buffer_proto5/Cargo.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "buffer_proto5"
|
||||
version = "0.1.0"
|
||||
authors = ["Colin <colin@uninsane.org>"]
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
coremem = { path = "../../coremem" }
|
||||
log = "0.4"
|
||||
serde = "1.0"
|
8
crates/applications/sr_latch/Cargo.toml
Normal file
8
crates/applications/sr_latch/Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "sr_latch"
|
||||
version = "0.1.0"
|
||||
authors = ["Colin <colin@uninsane.org>"]
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
coremem = { path = "../../coremem" }
|
8
crates/applications/wavefront/Cargo.toml
Normal file
8
crates/applications/wavefront/Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "wavefront"
|
||||
version = "0.1.0"
|
||||
authors = ["Colin <colin@uninsane.org>"]
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
coremem = { path = "../../coremem" }
|
Reference in New Issue
Block a user