-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
110 lines (95 loc) · 2.58 KB
/
Cargo.toml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[package]
name = "rust_pathtracer"
version = "0.2.0"
authors = ["Gillett Hernandez <gillett.hernandez@gmail.com>"]
edition = "2021"
default-run = "main"
[lints.rust]
rust_2018_idioms = "warn"
rust_2021_compatibility = "warn"
[lints.clippy]
assigning_clones = "deny"
[features]
build_raymarch = ["sdfu/ultraviolet", "ultraviolet"]
color_grad = ["colorgrad"]
# for scenes with many non-dense meshes, disable sort_mesh_aabb_hits
pbr = ["dep:pbr"]
default = [
"realistic_camera",
"sort_mesh_aabb_hits",
"sort_accelerator_aabb_hits",
]
gui = ["eframe", "egui_extras", "egui", "egui_plot", "minifb"]
notification = []
preview = ["minifb"]
realistic_camera = ["rust_optics"]
sort_mesh_aabb_hits = []
sort_accelerator_aabb_hits = []
visualize_importance_map = ["minifb"]
[dependencies]
anyhow = "~1.0"
bincode = "~1.3"
clap = { version = "4.5.8", features = ["derive"] }
colorgrad = { version = "~0.6", optional = true }
crossbeam = "~0.8"
deepsize = "~0.2"
eframe = { version = "~0", optional = true }
egui = { version = "~0", optional = true }
egui_extras = { version = "~0", optional = true }
egui_plot = { version = "~0", optional = true }
exr = "~1.72"
image = { version = "~0.25", features = ["hdr"] }
# log = "~0.4"
# log-once = "~0.4"
lazy_static = "~1.5"
math = { git = "https://github.com/gillett-hernandez/rust_cg_math", features = [
"serde",
"deepsize",
] }
minifb = { version = "~0.27", optional = true }
nalgebra = "~0.32"
num_cpus = "~1.16"
ordered-float = "~4.2"
parking_lot = "~0.12"
paste = "~1.0"
pbr = { version = "~1.1", optional = true }
png = "~0.17"
rand = "~0.8"
rayon = "~1.10"
rust_optics = { git = "https://github.com/gillett-hernandez/rust_optics", optional = true }
sdfu = { git = "https://github.com/fu5ha/sdfu", optional = true }
serde = { version = "~1.0", features = ["derive"] }
# simplelog = "0.12"
smallvec = "~1.13"
tobj = "~4.0"
toml = "~0.8"
tracing = "~0.1"
tracing-subscriber = "~0.3"
# pinning to 0.8 because of crate version reasons
ultraviolet = { version = "~0.8", optional = true }
[dev-dependencies]
proptest = "1.5.0"
[target.'cfg(windows)'.dependencies]
win32_notification = "~0.1"
[build-dependencies]
serde = { version = "~1.0", features = ["derive"] }
[lib]
path = "src/lib.rs"
[[bin]]
name = "clm_test"
path = "src/bin/clm_test.rs"
[[bin]]
name = "compare_exr"
path = "src/bin/compare_exr.rs"
required-features = ["color_grad"]
[[bin]]
name = "raymarch"
path = "src/bin/raymarch.rs"
required-features = ["build_raymarch"]
[[bin]]
name = "color_test"
path = "src/bin/color_test.rs"
required-features = ["gui"]
[[bin]]
name = "main"
path = "src/bin/main.rs"