From 3e25ec2fe8420368840262c31833a0bd33f82b61 Mon Sep 17 00:00:00 2001 From: Brian Misiak Date: Sat, 18 May 2024 18:06:27 -0700 Subject: [PATCH] update deps, compile for haswell and newer --- .cargo/config.toml | 5 +++++ .gitignore | 3 +-- Cargo.lock | 40 ---------------------------------------- Cargo.toml | 4 +--- 4 files changed, 7 insertions(+), 45 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..666eeaf --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[build] +# target = "i686-unknown-linux-gnu" + +[target.i686-unknown-linux-gnu] +rustflags = ["-C","target-cpu=haswell"] \ No newline at end of file diff --git a/.gitignore b/.gitignore index 378437a..eceed5c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ target/** target .DS_Store .vscode -build.rs -.cargo \ No newline at end of file +build.rs \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 907df01..7478474 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,12 +2,6 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "autocfg" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" - [[package]] name = "bitflags" version = "1.0.4" @@ -35,28 +29,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - [[package]] name = "heck" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" -[[package]] -name = "indexmap" -version = "1.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" -dependencies = [ - "autocfg", - "hashbrown", -] - [[package]] name = "log" version = "0.4.6" @@ -66,22 +44,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "once_cell" -version = "1.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" - -[[package]] -name = "priority-queue" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7685ca4cc0b3ad748c22ce6803e23b55b9206ef7715b965ebeaf41639238fdc" -dependencies = [ - "autocfg", - "indexmap", -] - [[package]] name = "proc-macro2" version = "0.4.30" @@ -145,8 +107,6 @@ dependencies = [ "fern", "fnv", "log", - "once_cell", - "priority-queue", "samp", "slab", "snafu", diff --git a/Cargo.toml b/Cargo.toml index f68d350..280a8e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,10 +15,8 @@ samp = { git = "https://github.com/bmisiak/samp-sdk.git", rev = "41e94ed94ee8366 slab = "0.4.2" log = "0.4.6" fern = { version = "0.6", features = [] } -priority-queue = "1.3.0" -once_cell = "1.19.0" fnv = "1.0.7" snafu = "0.8.0" [profile.release] -lto = true +lto = true \ No newline at end of file