-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
67 lines (56 loc) · 2.06 KB
/
Cargo.toml
File metadata and controls
67 lines (56 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[package]
name = "obvhs"
version = "0.3.0"
edition = "2024"
description = "BVH Construction and Traversal Library"
homepage = "https://github.com/DGriffin91/obvhs"
repository = "https://github.com/DGriffin91/obvhs"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["bvh", "sah", "aabb", "cwbvh", "ploc"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
glam = { version = ">=0.30, <0.32", features = ["bytemuck"] }
half = "2"
bytemuck = { version = "1", features = ["derive", "extern_crate_alloc"] }
rdst = { version = "0.20", default-features = false }
rayon = { version = "1", optional = true }
thread_local = { version = "1", optional = true }
log = "0.4"
static_assertions = "1"
# Noop unless one of the profile-with features below is also used
profiling = { version = "1", optional = true }
[dev-dependencies]
image = "0.25"
minifb = "0.28"
argh = "0.1"
obj = { version = "0.10", features = ["genmesh"] }
ruzstd = "0.8"
rayon = "1"
[features]
#default = ["parallel"]
parallel = ["dep:rayon", "dep:thread_local", "rdst/multi-threaded"]
timeit = []
# Enable small_bvh2_node to pack Bvh2Node into 32 bytes. In this mode the user meta1 & meta2 fields are unavailable.
# With small_bvh2_node traversal tends to be slightly faster, multi-threaded building tends to be faster, but
# single-threaded building tends to be slower.
# (particularly: single-threaded reinsertion is slower, but collapse is faster, ploc slightly faster)
small_bvh2_node = []
profile = ["dep:profiling"]
profile-with-puffin = ["profiling/profile-with-puffin"]
profile-with-optick = ["profiling/profile-with-optick"]
profile-with-superluminal = ["profiling/profile-with-superluminal"]
profile-with-tracing = ["profiling/profile-with-tracing"]
profile-with-tracy = ["profiling/profile-with-tracy"]
[profile.release-with-debug]
inherits = "release"
debug = true
# Enable optimization in debug mode
[profile.dev]
opt-level = 3
# Enable high optimizations for dependencies
[profile.dev.package."*"]
opt-level = 3
[[example]]
name = "obj_cwbvh"
test = true