-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.rcl
42 lines (42 loc) · 1.15 KB
/
Cargo.rcl
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
{
package = {
name = "rcl",
version = "0.6.0",
authors = ["Ruud van Asseldonk <[email protected]>"],
edition = "2021",
license = "Apache-2.0",
description = "A reasonable configuration language.",
},
dependencies = {
unicode-width = "0.1.10",
},
workspace = {
members = [
"fuzz",
"pyrcl",
"grammar/tree-sitter-rcl",
"wasm",
],
},
// Since Rust 1.80 we need to add the incantation below to avoid a warning about
// cfg(fuzzing), see <https://blog.rust-lang.org/2024/05/06/check-cfg.html>.
// But *before* Rust 1.80, this section itself causes a warning! So for now we
// leave this disabled, and we are compatible with the rust-toolchain.toml version.
// [lints.rust]
// unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fuzzing)"] }
profile = {
release = {
lto = "thin",
panic = "abort",
strip = true,
},
// For WASM, we optimize for size.
release-wasm = {
inherits = "release",
lto = "fat",
codegen-units = 1,
// Opt-level "z" produces slightly smaller wasm bundles than opt-level "s".
opt-level = "z",
},
},
}