-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
52 lines (45 loc) · 1.42 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
46
47
48
49
50
51
52
[workspace]
members = [
#
# Rust Tutorial
#
"crates/rs-101/basic",
"crates/rs-101/rust-by-example",
"crates/rs-101/rust-programming-in-action",
"crates/rs-101/rust-programming-cookbook",
#
#
#
# "crates/rs-cms",
"crates/rs-leetcode",
"crates/rs-cli",
"crates/rs-ffi",
"crates/rs-ffi-core",
"crates/rs-os/rs-macos/try-notification",
"crates/rs-os/rs-cross/try-notify",
# "crates/rs-tonic",
# "crates/rs-tauri-vue/src-tauri",
# "crates/rs-sqlcipher",
]
exclude = [
"tmp", # 不需要 ** 子目录
]
################################################################################
# release options:
#
# ref:
# - https://doc.rust-lang.org/cargo/reference/profiles.html#overrides
# - https://github.com/tikv/tikv/blob/master/Cargo.toml#L307
#
################################################################################
[profile.dev]
# Must always use panic = "abort" to avoid needing to define the unstable eh_personality lang item.
panic = "abort"
[profile.release]
opt-level = "z" # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary.
[profile.release.package.rs-cli]
strip = true # Automatically strip symbols from the binary.