From b7ac18b4500bd0b0d406d376de2af9215d23f359 Mon Sep 17 00:00:00 2001 From: roblabla Date: Thu, 13 Mar 2025 17:52:29 +0100 Subject: [PATCH 1/3] Set AR with the archiver from cc-rs cc-rs offers some variables to set the archiver program (commonly ar) that should be used for a given target. This is commonly used in cross-compilation situations, to use a version of AR compatible with the target linker. Signed-off-by: roblabla Signed-off-by: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com> --- jemalloc-sys/build.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jemalloc-sys/build.rs b/jemalloc-sys/build.rs index 4ed46a530..972ac566b 100644 --- a/jemalloc-sys/build.rs +++ b/jemalloc-sys/build.rs @@ -153,7 +153,9 @@ fn main() { } // Disable -Wextra warnings - jemalloc doesn't compile free of warnings with // it enabled: https://github.com/jemalloc/jemalloc/issues/1196 - let compiler = cc::Build::new().extra_warnings(false).get_compiler(); + let mut build = cc::Build::new(); + let build = build.extra_warnings(false); + let (compiler, archiver) = (build.get_compiler(), build.get_archiver()); let cflags = compiler .args() .iter() @@ -161,6 +163,7 @@ fn main() { .collect::>() .join(" "); info!("CC={:?}", compiler.path()); + info!("AR={:?}", archiver.get_program()); info!("CFLAGS={:?}", cflags); assert!(out_dir.exists(), "OUT_DIR does not exist"); @@ -196,6 +199,7 @@ fn main() { ) .current_dir(&build_dir) .env("CC", compiler.path()) + .env("AR", archiver.get_program()) .env("CFLAGS", cflags.clone()) .env("LDFLAGS", cflags.clone()) .env("CPPFLAGS", cflags) From 9bd735e236e3a32b8b030c83341068f5c2045c3c Mon Sep 17 00:00:00 2001 From: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com> Date: Sat, 10 Jan 2026 17:59:14 +0100 Subject: [PATCH 2/3] chore: update deprecated CI dependencies Signed-off-by: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com> --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e2236cc4..e25e63b37 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: target: x86_64-apple-darwin nobgt: 0 no_tests: 1 - tag: macos-13 + tag: macos-15-intel - name: x86_64-unknown-linux-gnu (nightly) target: x86_64-unknown-linux-gnu nobgt: 0 @@ -60,7 +60,7 @@ jobs: NO_JEMALLOC_TESTS: ${{ matrix.no_tests }} NOBGT: ${{ matrix.nobgt }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: submodules: true - name: install @@ -81,7 +81,7 @@ jobs: name: Benchmarks using x86_64-unknown-linux-gnu (nightly) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: submodules: true - run: rustup default nightly @@ -90,7 +90,7 @@ jobs: name: Rustfmt and Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: submodules: true - run: rustup component add rustfmt clippy From 126b754fa8558bc60706db84d82a36f5eaa46ca4 Mon Sep 17 00:00:00 2001 From: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com> Date: Sat, 10 Jan 2026 17:59:34 +0100 Subject: [PATCH 3/3] chore: let dependabot update dependencies Signed-off-by: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com> --- .github/dependabot.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..787880ee2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,23 @@ +version: 2 +updates: + - package-ecosystem: cargo + directory: / + schedule: + interval: weekly + cooldown: # applies only to version-updates (not security-updates) + semver-patch: 7 # wait 7 days before applying patch updates + semver-minor: 14 + semver-major: 28 + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + # https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns + cooldown: + default-days: 7 + - package-ecosystem: gitsubmodule + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7