diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..10b6ce8 --- /dev/null +++ b/.cargo/config.toml @@ -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" diff --git a/Cargo.lock b/Cargo.lock index 691869e..b6b039f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml index 94d6c83..f22bc5f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..5d56faf --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "nightly"