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/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. 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"]