-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
58 lines (52 loc) · 1.78 KB
/
Copy pathCargo.toml
File metadata and controls
58 lines (52 loc) · 1.78 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
[workspace]
resolver = "3"
members = [
"crates/dragonwing-edge",
"crates/dragonwing-core",
"crates/dragonwing-hal",
"crates/dragonwing-probe",
"crates/dragonwing-cpu",
"crates/dragonwing-shaders",
"crates/dragonwing-vulkan",
"crates/dragonwing-onnx",
"crates/dragonwing-test",
]
[workspace.package]
version = "0.0.1"
edition = "2024"
rust-version = "1.93"
license = "Apache-2.0"
repository = "https://github.com/anomalyco/dragonwing-edge-rs"
authors = ["Taras Woronjanski"]
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"
missing_debug_implementations = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
module_name_repetitions = "allow"
must_use_candidate = "allow"
# Proper-noun acronyms (OpenCL, FastRPC, Vulkan, KGSL, NEON, etc.) legitimately
# appear unbacktick'd in narrative docs. The lint is more noise than signal.
doc_markdown = "allow"
# Minimal-dep policy: every workspace dep must be justified in the crate
# Cargo.toml that pulls it in. Default-features should be off unless required.
[workspace.dependencies]
# Optional JSON serialisation for the capability report. Behind a `serde`
# feature on dragonwing-core; the core crate itself does not depend on serde
# unconditionally. Justification: the probe binary needs to emit structured
# JSON, and hand-rolling JSON is more error-prone than the cost of two crates.
serde = { version = "1", default-features = false, features = ["derive", "alloc"] }
serde_json = { version = "1", default-features = false, features = ["alloc"] }
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = "symbols"
panic = "abort"
[profile.release-dev]
inherits = "release"
lto = false
codegen-units = 16
strip = "none"