From 0befdafcfcddf3e40f0dd1641dcb2177652ce558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Th=C3=A9riault?= Date: Wed, 2 Sep 2026 17:06:11 -0400 Subject: [PATCH 1/2] switch to stable --- .cargo/config.toml | 3 --- rust-toolchain.toml | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 356afff..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,3 +0,0 @@ -[unstable] -build-std = ["std", "panic_abort"] -build-std-features = ["optimize_for_size"] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 94d00a7..fefc3a8 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "nightly" -components = ["rustfmt", "clippy", "rust-src"] +channel = "stable" +components = ["rustfmt", "clippy"] targets = ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu"] From 46507c9658efba0d99d1d07128e2e6a88819e36b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 2 Sep 2026 21:34:07 +0000 Subject: [PATCH 2/2] Update stable toolchain docs Co-authored-by: raphael-theriault-swi <113933910+raphael-theriault-swi@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 915c4c1..352cc7d 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,6 @@ COPY --from=collector /opt/extensions/diet-lambda /opt/extensions/diet-lambda ## Developing -The collector requires a nightly Rust toolchain in order to build the standard library while optimizing for a small binary size. It uses the standard Cargo workflow, just run `cargo build`. `rustfmt` and `clippy` are run in CI, which will fail if there are any warnings. +The collector uses the stable Rust toolchain. It uses the standard Cargo workflow, just run `cargo build`. `rustfmt` and `clippy` are run in CI, which will fail if there are any warnings. The primary goal of this collector is to be lightweight, as such dependencies should be vetted and kept to a minimum, and niche features should be kept to the Go collector if they might bloat this collector for people who do not need them.