remove libc crate; optimize release profile

This commit is contained in:
raf 2024-08-03 23:09:29 +03:00
parent 42a7f2fc77
commit 6dafa776d2
Signed by: NotAShelf
GPG key ID: AF26552424E53993
2 changed files with 7 additions and 2 deletions

1
Cargo.lock generated
View file

@ -108,7 +108,6 @@ name = "microfetch"
version = "0.1.0"
dependencies = [
"color-eyre",
"libc",
"nix",
]

View file

@ -4,9 +4,15 @@ version = "0.1.0"
edition = "2021"
[dependencies]
libc = "0.2"
nix = {version = "0.29", features = ["fs"]}
color-eyre = { version = "0.6", default-features = false }
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"