-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
41 lines (36 loc) · 1.13 KB
/
Copy pathCargo.toml
File metadata and controls
41 lines (36 loc) · 1.13 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
[workspace]
resolver = "3"
members = ["crates/cargo-elfpak", "crates/elfpak", "crates/elfpak-core"]
[workspace.package]
version = "0.5.4"
edition = "2024"
rust-version = "1.98"
license = "MIT OR Apache-2.0"
repository = "https://github.com/asaaki/elfpak"
readme = "README.md"
description = "Package a Linux ELF application and its runtime closure into a minimal rootfs"
include = ["src/**", ".assets/**", "LICENSE*"]
# Keep compiler warnings visible across the workspace.
[workspace.lints.rust]
unsafe_code = "forbid"
missing_debug_implementations = "warn"
unused_qualifications = "warn"
unreachable_pub = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
# Assertions and error handling are the safety net; silent truncation is not.
cast_possible_truncation = "warn"
cast_lossless = "warn"
undocumented_unsafe_blocks = "warn"
[workspace.dependencies]
anyhow = "1"
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
tempfile = "3"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true