Skip to content

Commit

Permalink
test-renderers: make auto-threads optional.
Browse files Browse the repository at this point in the history
Also remove no-longer-used direct `rayon` dependency.
  • Loading branch information
kpreid committed Jul 20, 2024
1 parent 5e3ae1f commit bb8d9c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions test-renderers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ doctest = false
harness = false

[features]
default = []
default = ["auto-threads"]
# This is a feature so that, if we want to, we can test the non-threaded build.
auto-threads = [
"all-is-cubes/auto-threads",
"all-is-cubes-gpu/auto-threads",
"all-is-cubes-render/auto-threads",
]
gltf = [
"dep:all-is-cubes-port",
"dep:rend3",
Expand All @@ -55,11 +61,11 @@ gltf = [
]

[dependencies]
all-is-cubes = { workspace = true, features = ["auto-threads", "save"] }
all-is-cubes = { workspace = true, features = ["save"] }
all-is-cubes-content = { workspace = true }
all-is-cubes-gpu = { workspace = true, features = ["wgpu"] }
all-is-cubes-port = { workspace = true, optional = true, features = [] }
all-is-cubes-render = { workspace = true, features = ["auto-threads", "raytracer", "std"] }
all-is-cubes-render = { workspace = true, features = ["raytracer", "std"] }
all-is-cubes-ui = { workspace = true }
async_fn_traits = { workspace = true }
bytemuck = { workspace = true }
Expand All @@ -75,7 +81,6 @@ imgref = { workspace = true }
itertools = { workspace = true }
log = { workspace = true }
mint = { version = "0.5.9", optional = true }
rayon = { workspace = true }
rend3 = { git = "https://github.com/BVE-Reborn/rend3/", rev = "86bc4d2d2f4048a0adaa9af5ef542dc652308966", optional = true }
rend3-gltf = { git = "https://github.com/BVE-Reborn/rend3/", rev = "86bc4d2d2f4048a0adaa9af5ef542dc652308966", optional = true, default-features = false }
rend3-routine = { git = "https://github.com/BVE-Reborn/rend3/", rev = "86bc4d2d2f4048a0adaa9af5ef542dc652308966", optional = true }
Expand Down

0 comments on commit bb8d9c0

Please sign in to comment.