Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
107 lines (96 loc) · 2.69 KB
/
Copy pathCargo.toml
File metadata and controls
107 lines (96 loc) · 2.69 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
[workspace]
members = ["crates/*"]
resolver = "3"
[workspace.package]
edition = "2024"
license = "MIT"
publish = false
repository = "https://github.com/wevm/zyzz"
rust-version = "1.97.0"
version = "0.0.0"
[workspace.dependencies]
compact_str = "0.9"
compiler = { path = "crates/compiler" }
css = { path = "crates/css" }
indexmap = "2"
insta = "1"
lightningcss = { version = "=1.0.0-alpha.72", default-features = false, features = ["visitor"] }
memchr = "2"
mimalloc = "0.1"
napi = { version = "3", default-features = false, features = ["napi6"] }
napi-build = "2"
napi-derive = "3"
oxc_allocator = "=0.148.0"
oxc_ast = "=0.148.0"
oxc_ast_visit = "=0.148.0"
oxc_diagnostics = "=0.148.0"
oxc_ecmascript = "=0.148.0"
oxc_index = { version = "=5.0.0", features = ["nonmax"] }
oxc_parser = "=0.148.0"
oxc_semantic = "=0.148.0"
oxc_span = "=0.148.0"
oxc_syntax = { version = "=0.148.0", features = ["to_js_string"] }
parcel_selectors = "=0.28.3"
parcel_sourcemap = { version = "=2.1.1", features = ["json"] }
rustc-hash = "2"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
smallvec = { version = "1", features = ["const_generics", "union"] }
[workspace.lints.rust]
absolute_paths_not_starting_with_crate = "warn"
missing_docs = "warn"
non_ascii_idents = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_unsafe = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
allow_attributes = "warn"
dbg_macro = "warn"
get_unwrap = "warn"
# FxHash is the only hasher, since clippy.toml disallows the std map types.
implicit_hasher = "allow"
iter_over_hash_type = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
similar_names = "allow"
todo = "warn"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
[profile.dev]
debug = "line-tables-only"
opt-level = 1
[profile.dev.package.insta]
opt-level = 3
[profile.dev.package.similar]
opt-level = 3
[profile.release]
codegen-units = 1
debug = false
lto = "fat"
opt-level = 3
# The binding converts panics into compiler errors, so a development server never aborts.
panic = "unwind"
strip = "symbols"
# Integration tests rebuild the addon after Rust edits, so compilation skips optimization.
[profile.binding-test]
codegen-units = 16
incremental = true
inherits = "release"
lto = false
opt-level = 0
# The browser WebAssembly module inlines into bundles, so it trades peak speed for size.
[profile.wasm]
inherits = "release"
opt-level = "z"
[profile.profiling]
debug = "full"
inherits = "release"
strip = false