diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..43dbf31 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies.jemallocator] +version = "0.3" + +[target.armv7-unknown-linux-gnueabihf] +linker = "arm-linux-gnueabihf-gcc" diff --git a/Cargo.lock b/Cargo.lock index aab47cd..388a062 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1042,12 +1042,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "fs_extra" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2022715d62ab30faffd124d40b76f4134a550a87792276512b18d63272333394" - [[package]] name = "fuchsia-zircon" version = "0.3.3" @@ -1392,27 +1386,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" -[[package]] -name = "jemalloc-sys" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d3b9f3f5c9b31aa0f5ed3260385ac205db665baa41d49bb8338008ae94ede45" -dependencies = [ - "cc", - "fs_extra", - "libc", -] - -[[package]] -name = "jemallocator" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43ae63fcfc45e99ab3d1b29a46782ad679e98436c3169d15a167a1108a724b69" -dependencies = [ - "jemalloc-sys", - "libc", -] - [[package]] name = "jobserver" version = "0.1.24" @@ -3162,7 +3135,6 @@ dependencies = [ "base64", "bcrypt", "chrono", - "jemallocator", "jsonwebtoken", "mime_guess", "rand 0.8.4", diff --git a/Cargo.toml b/Cargo.toml index a96b483..3c0cbcc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,8 +28,3 @@ rand = "0.8.4" base64 = "0.13.0" sqlx = { version = "^0.5", features=["sqlite", "migrate"] } -[target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies.jemallocator] -version = "0.3" - -[target.armv7-unknown-linux-gnueabihf] -linker = "arm-linux-gnueabihf-gcc"