-
Notifications
You must be signed in to change notification settings - Fork 50
/
Cargo.toml
45 lines (40 loc) · 1.2 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
[workspace]
resolver = "2"
default-members = ["lib", "full-node"]
members = [
"lib",
"full-node",
"light-base",
"wasm-node/rust",
]
[workspace.package]
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
edition = "2021"
repository = "https://github.com/smol-dot/smoldot"
include = ["**/*.rs"] # Only Rust files are included, as anything else might be a test fixture.
[profile.dev]
debug = "limited"
opt-level = 2
panic = "abort"
[profile.dev.package."*"]
opt-level = 3
debug-assertions = false # The debug assertions in wasmi in particular take a lot of time
# The `test` profile mimics the `dev` profile to avoid recompilations.
[profile.test]
opt-level = 2
[profile.test.package."*"]
opt-level = 3
[profile.release]
panic = "abort"
lto = true
# codegen-units set to 1 to avoid performance regressions when combined with LTO
# See https://github.com/rust-lang/rust/issues/47745
# https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
codegen-units = 1
incremental = false
strip = "symbols"
[profile.min-size-release]
inherits = "release"
opt-level = "z"
incremental = false