emma
/
breed
Archived
forked from mars/breed
1
0
Fork 0

Merge pull request 'reduced binary size' (#9) from emma/breed:main into main

Reviewed-on: mars/breed#9
This commit is contained in:
mars 2023-04-12 22:56:00 +00:00
commit 2976fb4697
4 changed files with 12 additions and 39 deletions

10
.cargo/config.toml Normal file
View File

@ -0,0 +1,10 @@
[unstable]
build-std = [ "std", "panic_abort" ]
build-std-features = [ "panic_immediate_abort" ]
[profile.release]
strip = true # strip symbols from the binary
opt-level = "z" # optimize for size
lto = true # link time optimization
codegen-units = 1 # decrease parallelization
panic = "abort"

37
Cargo.lock generated
View File

@ -8,26 +8,6 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "arg"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "568bbed0b9810cd4b43c8560ff3c5d2318b29d78fc314818d156bbed7075d394"
dependencies = [
"arg-derive",
]
[[package]]
name = "arg-derive"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "849efc162c06e51ce911bf4fe702f62a08f3b6ebbbfc5178e86c6bae449c2c60"
dependencies = [
"quote",
"syn 1.0.109",
"tabwriter",
]
[[package]]
name = "autocfg"
version = "1.1.0"
@ -75,12 +55,10 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
name = "breed"
version = "0.1.0"
dependencies = [
"arg",
"crossbeam-channel",
"crossterm",
"libc",
"notify",
"once_cell",
"parking_lot",
"ropey",
"syntect",
@ -662,15 +640,6 @@ dependencies = [
"walkdir",
]
[[package]]
name = "tabwriter"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36205cfc997faadcc4b0b87aaef3fbedafe20d38d4959a7ca6ff803564051111"
dependencies = [
"unicode-width",
]
[[package]]
name = "thiserror"
version = "1.0.40"
@ -731,12 +700,6 @@ version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4"
[[package]]
name = "unicode-width"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b"
[[package]]
name = "walkdir"
version = "2.3.3"

View File

@ -5,12 +5,10 @@ edition = "2021"
license = "AGPL-3.0-or-later"
[dependencies]
arg = "0.4.1"
crossterm = "0.26"
crossbeam-channel = "0.5"
libc = "0.2.141"
notify = "5"
once_cell = "1.17"
parking_lot = "0.12"
ropey = "1.6"
toml = "0.7"

2
rust-toolchain.toml Normal file
View File

@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"