Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
214 lines (200 loc) · 11.5 KB
/
Copy pathCargo.toml
File metadata and controls
214 lines (200 loc) · 11.5 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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
[workspace]
resolver = "3"
members = [
"crates/core",
"crates/geom",
"crates/nodes",
"crates/eval",
"crates/formats",
"crates/engine",
"crates/render",
"crates/automation",
"crates/ui-egui",
"apps/materialcraft",
"apps/materialcraft-cli",
"apps/materialcraft-web",
"xtask",
]
exclude = ["vendor"]
# The web app only builds for wasm32 (trunk); everything else is the default.
default-members = [
"crates/core",
"crates/geom",
"crates/nodes",
"crates/eval",
"crates/formats",
"crates/engine",
"crates/render",
"crates/automation",
"crates/ui-egui",
"apps/materialcraft",
"apps/materialcraft-cli",
"xtask",
]
[workspace.package]
version = "0.4.1"
edition = "2024"
license = "MIT OR Apache-2.0"
[workspace.dependencies]
# Standard Base64 output; strict SBS decoding remains app-local
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", version = "0.1.0" }
# Read 3D meshes through craft-mesh; keep mesh processing app-local
craft-mesh = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", default-features = false, features = ["obj", "gltf"] }
# Shared XML escaping and bounded XML parsing; SBS model and serialization policy stay app-local
craft-xml = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Shared SBS package/schema parsing, sniffing, embedded codec, and envelope writing (storytold/craft-libs#2496)
craft-sbs = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Shared bounded ZIP archive reader and deterministic writer (storytold/craft-libs#2411)
craft-zip = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Bound SVG parsing and drawing through craft-svg
craft-svg = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", features = ["tree-render"] }
# Shared raster image codecs
craft-image-codecs = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# internal
materialcraft-core = { path = "crates/core" }
materialcraft-geom = { path = "crates/geom" }
materialcraft-nodes = { path = "crates/nodes" }
materialcraft-eval = { path = "crates/eval" }
materialcraft-formats = { path = "crates/formats" }
materialcraft-engine = { path = "crates/engine" }
materialcraft-render = { path = "crates/render" }
materialcraft-automation = { path = "crates/automation" }
materialcraft-ui-egui = { path = "crates/ui-egui" }
# external
thiserror = "2"
serde = { version = "1", features = ["derive"] }
# Preserve decimal parameter values before converting them to the graph's storage type.
serde_json = { version = "1", features = ["float_roundtrip"] }
sha2 = "0.10" # MIT OR Apache-2.0; stable content keys for persistent previews.
glam = { version = "0.30", features = ["serde", "bytemuck"] }
rayon = "1"
log = "0.4"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "tga", "tiff", "exr", "hdr", "bmp", "webp", "gif", "pnm"] }
dds = { version = "0.2", default-features = false }
half = "2"
eframe = { version = "0.37", default-features = false }
egui = "0.37"
rfd = "0.17"
rustix = { version = "1", default-features = false, features = ["std", "fs", "process"] }
# Independent ZIP interoperability fixtures only.
zip = { version = "=9.8.2", default-features = false, features = ["deflate-flate2"] }
mikktspace = { version = "0.3", default-features = false, features = ["glam"] }
rmcp = { version = "3.5", default-features = false, features = ["server", "macros", "transport-io"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-std", "sync", "net", "io-util", "time"] }
schemars = "1"
base64 = "0.22"
roxmltree = "0.21"
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
cap-std = "4"
getrandom = "0.3"
# Shared Craft egui components from storytold/craft-libs
# MIT OR Apache-2.0
egui_kittest = "0.37"
craft-materialx = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# MCMAT v3 uses its merged archive revision and the matching ZIP crate
craft-mcmat = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-behavior = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-host = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Agents in the open window through the ArtCraft Launcher's switch: the link host (control server, token,
# connection file) and the Agents page of Preferences (`craft-automation`), the switch, the agent settings and
# the CLI's live client (`craft-control`).
craft-automation = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-control = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", default-features = false }
harfrust = "0.13"
read-fonts = { version = "0.43", default-features = false }
unicode-bidi = "0.3.18"
vello_common = { version = "0.2", default-features = false, features = ["std"] }
# Keyboard bindings (chords, dispatch and display text): storytold/craft-libs, MIT OR Apache-2.0
craft-keymap = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", features = ["egui"] }
# Native dialogs that do not block the event loop: storytold/craft-libs, MIT OR Apache-2.0
craft-dialogs = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
craft-platform = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# The platform quit and the macOS Quit menu item: storytold/craft-libs, MIT OR Apache-2.0
craft-quit = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", features = ["ui"] }
craft-menu = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Who draws the window frame, and an app-drawn strip as the title bar: storytold/craft-libs, MIT OR Apache-2.0
craft-window = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", features = ["ui"] }
# Release checks and self-updates for the desktop app: storytold/craft-libs, MIT OR Apache-2.0
craft-update = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", features = ["ui"] }
# Atomic persistence, at the suite's current revision
craft-atomic = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Nightly profile isolation, launch protocol, and security fence: storytold/craft-libs, MIT OR Apache-2.0
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "8945bdb09b36245a1d442438ce8876377ef430d0" }
craft-png = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Parse the optional shared font catalog at build time; the font repository is not a dependency
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c" }
# Float image planes and texture sampling for node cooking: storytold/craft-libs, MIT OR Apache-2.0
craft-texture = { git = "https://github.com/storytold/craft-libs", rev = "d7010805175ba1190d521b2565852bdda39e632c", features = ["parallel"] }
# egui 0.37 and winit: the suite's forks (storytold/egui, storytold/winit), as craft-libs pins them.
[patch.crates-io]
ecolor = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
emath = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
epaint = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
egui = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
egui-winit = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
egui_glow = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
eframe = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" }
egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "b9770908e0f304896f9658d239a7b29cf8af1564" }
# egui-phosphor has no release for egui 0.37 (vendor/egui-phosphor/VENDORED.md).
egui-phosphor = { path = "vendor/egui-phosphor" }
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.lints.clippy]
dbg_macro = "warn"
todo = "warn"
# Index loops read better than zipped iterators in per-pixel code.
needless_range_loop = "allow"
field_reassign_with_default = "allow"
too_many_arguments = "allow"
[profile.dev.package."*"]
opt-level = 2
[profile.dev]
opt-level = 1
[profile.release]
lto = "thin"
codegen-units = 1
# Fast optimized verification: each test executable otherwise repeats cross-crate LTO
# `false` keeps thin LTO within each crate; release packaging keeps the profile above
[profile.verify]
inherits = "release"
lto = false
codegen-units = 16
[profile.wasm-release]
inherits = "release"
# "z" over "s": the browser build must stay under the 24 MiB gate in packaging/web/package.sh
# (Cloudflare's per-file cap is 25 MiB). TextureCraft measured the same change on its main
# (7c8dd1ae): 30,812,862 bytes with "s", 26,654,524 with the levels below. MaterialCraft's
# scheduled Release Web (wasm) job has failed since #318 at 27–29 MiB with "s"
# (28,867,960 bytes on 41cdc4ed, 2026-12-02 run 46795725991).
opt-level = "z"
lto = "fat"
codegen-units = 1
strip = "debuginfo"
[profile.wasm-release.package."*"]
opt-level = "z"
# Kept at "s": these rely on inlining, and at "z" they come out larger, not smaller
# (TextureCraft's measurements on the same crates).
[profile.wasm-release.package.fearless_simd]
opt-level = "s"
[profile.wasm-release.package.vello_cpu]
opt-level = "s"
[profile.wasm-release.package.vello_common]
opt-level = "s"
[profile.wasm-release.package.craft-image-codecs]
opt-level = "s"
# Node cooking and the vector math under it run per pixel.
[profile.wasm-release.package.craft-texture]
opt-level = 3
[profile.wasm-release.package.materialcraft-nodes]
opt-level = 3
[profile.wasm-release.package.materialcraft-render]
opt-level = 3
[profile.wasm-release.package.glam]
opt-level = 3