-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
40 lines (36 loc) · 1.07 KB
/
Copy pathCargo.toml
File metadata and controls
40 lines (36 loc) · 1.07 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
[workspace]
resolver = "2"
members = [
"crates/chiral-common",
"crates/chiral-probe",
"crates/chiral-idprobe",
"xtask",
]
# `xtask` is a host tool; the crates are device tools. Keeping xtask out of the
# default set means `cargo check --target aarch64-linux-android` does the right
# thing without also trying to cross-compile the build driver.
default-members = [
"crates/chiral-common",
"crates/chiral-probe",
"crates/chiral-idprobe",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
rust-version = "1.77"
license = "Apache-2.0"
[workspace.dependencies]
chiral-common = { path = "crates/chiral-common" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
libc = "0.2"
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true
# Deliberately NOT panic = "abort". The probe flips SELinux to permissive and
# must restore it via a Drop guard even if something panics mid-pass. Aborting
# would leave a device wide open.
panic = "unwind"