# tools and infrastructure

**URL:** https://internals.rust-lang.org/c/tools-and-infrastructure/22.md?page=2

[Latest](https://internals.rust-lang.org/latest.md) · [Categories](https://internals.rust-lang.org/categories.md)

**Page:** 3

---

## [How fail on cargo:warning= warnings from build.rs](https://internals.rust-lang.org/t/how-fail-on-cargo-warning-warnings-from-build-rs/23590)

<div class="topic-metadata">

**Author:** [@krobelus](https://internals.rust-lang.org/u/krobelus)\
**Replies:** 8\
**Last updated:** [October 7, 2025, 2:01pm UTC](https://internals.rust-lang.org/t/how-fail-on-cargo-warning-warnings-from-build-rs/23590 "2025-10-07T14:01:07Z")

</div>

cargo clippy -- --deny=warnings will catch any compiler warnings, but it doesn't catch cargo warnings, such as warnings about unknown Cargo.toml fields or user-defined ones as created by println!("cargo:warning=this-is-a…

---

## [Adding a Reliability Rating System to Crates.io](https://internals.rust-lang.org/t/adding-a-reliability-rating-system-to-crates-io/23567)

<div class="topic-metadata">

**Author:** [@rxdiscovery](https://internals.rust-lang.org/u/rxdiscovery)\
**Replies:** 20\
**Last updated:** [October 6, 2025, 11:18am UTC](https://internals.rust-lang.org/t/adding-a-reliability-rating-system-to-crates-io/23567 "2025-10-06T11:18:46Z")

</div>

Hello everyone, In light of the recent supply chain attacks and the appearance of malicious crates, I was wondering if it would be possible to add a reliability rating system to crates.io — something like \[safe / not sa…

---

## [Make aarch64-apple-darwin one of the default targets for docs.rs](https://internals.rust-lang.org/t/make-aarch64-apple-darwin-one-of-the-default-targets-for-docs-rs/23583)

<div class="topic-metadata">

**Author:** [@philomathic\_life](https://internals.rust-lang.org/u/philomathic_life)\
**Replies:** 1\
**Last updated:** [October 1, 2025, 4:24pm UTC](https://internals.rust-lang.org/t/make-aarch64-apple-darwin-one-of-the-default-targets-for-docs-rs/23583 "2025-10-01T16:24:06Z")

</div>

aarch64-apple-darwin is a tier 1 platform while x86\_64-apple-darwin is a tier 2 platform, but docs.rs still builds docs for x86\_64-apple-darwin by default and not aarch64-apple-darwin. Should this be changed? I'm current…

---

## [Breaking down crate dependencies?](https://internals.rust-lang.org/t/breaking-down-crate-dependencies/23566)

<div class="topic-metadata">

**Author:** [@matthieum](https://internals.rust-lang.org/u/matthieum)\
**Replies:** 15\
**Last updated:** [September 30, 2025, 10:49am UTC](https://internals.rust-lang.org/t/breaking-down-crate-dependencies/23566 "2025-09-30T10:49:51Z")

</div>

At the moment, dependencies in Cargo.toml are coarse-grained. In theory a crate can contain: One library. Multiple binaries. Multiple example binaries. One unit-test binaries. Multiple doc-test binaries. Multiple inte…

---

## [Idea: a small crate for verifying crates + generating SBOMs (future-proof for signing)](https://internals.rust-lang.org/t/idea-a-small-crate-for-verifying-crates-generating-sboms-future-proof-for-signing/23574)

<div class="topic-metadata">

**Author:** [@tommantonclery](https://internals.rust-lang.org/u/tommantonclery)\
**Replies:** 5\
**Last updated:** [September 28, 2025, 9:39am UTC](https://internals.rust-lang.org/t/idea-a-small-crate-for-verifying-crates-generating-sboms-future-proof-for-signing/23574 "2025-09-28T09:39:43Z")

</div>

Right now Cargo checks that crate tarballs match the SHA256 in the index, which is good for integrity but doesn’t prove who published a crate. If crates.io or the index itself ever got compromised, Cargo wouldn’t notice …

---

## [Gradual rollouts and urgent updates of crates.io releases](https://internals.rust-lang.org/t/gradual-rollouts-and-urgent-updates-of-crates-io-releases/23573)

<div class="topic-metadata">

**Author:** [@kornel](https://internals.rust-lang.org/u/kornel)\
**Replies:** 4\
**Last updated:** [September 27, 2025, 5:24pm UTC](https://internals.rust-lang.org/t/gradual-rollouts-and-urgent-updates-of-crates-io-releases/23573 "2025-09-27T17:24:33Z")

</div>

Currently crate releases appear immediately on crates.io. Users who don't have a lockfile get the release immediately. Users with lockfiles get it whenever they decide to update. That's generally good enough, but someti…

---

## [Build depedencies specific to the compilation target, not host](https://internals.rust-lang.org/t/build-depedencies-specific-to-the-compilation-target-not-host/23571)

<div class="topic-metadata">

**Author:** [@nazar-pc](https://internals.rust-lang.org/u/nazar-pc)\
**Replies:** 0\
**Last updated:** [September 26, 2025, 6:07pm UTC](https://internals.rust-lang.org/t/build-depedencies-specific-to-the-compilation-target-not-host/23571 "2025-09-26T18:07:12Z")

</div>

build-dependencies right now is quite special in that it neither supports feature gating, not does it treat targets the same way as the rest of the code. Specifically, when I have this in Cargo.toml: \[target.'cfg(targe…

---

## [Bundle zig-cc in rustup by default](https://internals.rust-lang.org/t/bundle-zig-cc-in-rustup-by-default/22096)

<div class="topic-metadata">

**Author:** [@NobodyXu](https://internals.rust-lang.org/u/NobodyXu)\
**Replies:** 34\
**Last updated:** [September 20, 2025, 2:35pm UTC](https://internals.rust-lang.org/t/bundle-zig-cc-in-rustup-by-default/22096 "2025-09-20T14:35:13Z")

</div>

Motivation Having a C compiler is necessary for many crates, for example, https, tls, compression/decompression. For http, even if rustls is used, it would still have to pull in ring which has a build-script to compile …

---

## [Easy way to access the built binary](https://internals.rust-lang.org/t/easy-way-to-access-the-built-binary/23526)

<div class="topic-metadata">

**Author:** [@miikkas](https://internals.rust-lang.org/u/miikkas)\
**Replies:** 8\
**Last updated:** [September 14, 2025, 11:48am UTC](https://internals.rust-lang.org/t/easy-way-to-access-the-built-binary/23526 "2025-09-14T11:48:36Z")

</div>

I often need to do something to or with the binary I've just build, and would find it useful if cargo provided an easy way to find and access the location of the built binary, regardless of whether it has actually been b…

---

## [Parallel dependency source updates](https://internals.rust-lang.org/t/parallel-dependency-source-updates/23441)

<div class="topic-metadata">

**Author:** [@susitsm](https://internals.rust-lang.org/u/susitsm)\
**Replies:** 3\
**Last updated:** [September 6, 2025, 8:08am UTC](https://internals.rust-lang.org/t/parallel-dependency-source-updates/23441 "2025-09-06T08:08:53Z")

</div>

Currently, source updates are done in a blocking way during dependency resolution. With many different sources (many packages with git path in my case), this can become the bottleneck of cargo update. Technical details W…

---

## [Local Crate Registry (without vendoring)](https://internals.rust-lang.org/t/local-crate-registry-without-vendoring/23473)

<div class="topic-metadata">

**Author:** [@maspe36](https://internals.rust-lang.org/u/maspe36)\
**Replies:** 4\
**Last updated:** [August 29, 2025, 10:52pm UTC](https://internals.rust-lang.org/t/local-crate-registry-without-vendoring/23473 "2025-08-29T22:52:18Z")

</div>

Background Hey all, I've been looking at integrating cargo with the ROS 2 build tool, colcon, as part of the ros2\_rust project. Without getting too deep into it, colcon is a python tool which will invoke various build sy…

---

## [Initiative, a group of changes to make vendoring easier](https://internals.rust-lang.org/t/initiative-a-group-of-changes-to-make-vendoring-easier/23421)

<div class="topic-metadata">

**Author:** [@plein](https://internals.rust-lang.org/u/plein)\
**Replies:** 29\
**Last updated:** [August 26, 2025, 10:11am UTC](https://internals.rust-lang.org/t/initiative-a-group-of-changes-to-make-vendoring-easier/23421 "2025-08-26T10:11:55Z")

</div>

the usual vendoring workflow I have is Recursively submodule all the dependencies into my git repo, which can be quite messy as my demands grow. Recursively change all dependencies to use my vendored sources. Check car…

---

## [\`.cargo/config.toml\` env setting to pull value from terminal environment](https://internals.rust-lang.org/t/cargo-config-toml-env-setting-to-pull-value-from-terminal-environment/23382)

<div class="topic-metadata">

**Author:** [@amab8901](https://internals.rust-lang.org/u/amab8901)\
**Replies:** 3\
**Last updated:** [August 14, 2025, 11:11pm UTC](https://internals.rust-lang.org/t/cargo-config-toml-env-setting-to-pull-value-from-terminal-environment/23382 "2025-08-14T23:11:32Z")

</div>

Would be nice if there was a feature that allows you to pull the env value from the environment of the terminal that called the program. For example, let's say I run this in the terminal: export ENV1=VAL1 cargo t int…

---

## [Add some form of precompiled artifact support to cargo](https://internals.rust-lang.org/t/add-some-form-of-precompiled-artifact-support-to-cargo/22871)

<div class="topic-metadata">

**Author:** [@binarycat](https://internals.rust-lang.org/u/binarycat)\
**Replies:** 20\
**Last updated:** [August 9, 2025, 7:02am UTC](https://internals.rust-lang.org/t/add-some-form-of-precompiled-artifact-support-to-cargo/22871 "2025-08-09T07:02:36Z")

</div>

there's a lot of arguments for and against this, but i think a lot of these don't matter, because many crates are already shipping prebuilt artifacts. ideally this could also be integrated with some sort of deterministi…

---

## [I didn't see one so I made one - Rust Windows Installer](https://internals.rust-lang.org/t/i-didnt-see-one-so-i-made-one-rust-windows-installer/23140)

<div class="topic-metadata">

**Author:** [@HasturDev](https://internals.rust-lang.org/u/HasturDev)\
**Replies:** 24\
**Last updated:** [August 7, 2025, 1:43am UTC](https://internals.rust-lang.org/t/i-didnt-see-one-so-i-made-one-rust-windows-installer/23140 "2025-08-07T01:43:24Z")

</div>

I don't know where this would go or where someone would want me to put it. I realized that there isn't an easy installer/executable installer for rust. So I made one using the standard library. If you like it then this w…

---

## [Cargo new --workspace](https://internals.rust-lang.org/t/cargo-new-workspace/23313)

<div class="topic-metadata">

**Author:** [@binarycat](https://internals.rust-lang.org/u/binarycat)\
**Replies:** 3\
**Last updated:** [August 2, 2025, 6:36pm UTC](https://internals.rust-lang.org/t/cargo-new-workspace/23313 "2025-08-02T18:36:05Z")

</div>

Fairly simple proposal: add a --workspace flag to cargo that adds the newly created package to workspace.members in the current project’s Cargo.toml. This small tweak would make workspaces a lot more ergonomic to use.

---

## [\[Idea\] Another posible mod source file location](https://internals.rust-lang.org/t/idea-another-posible-mod-source-file-location/23285)

<div class="topic-metadata">

**Author:** [@pjgf94](https://internals.rust-lang.org/u/pjgf94)\
**Replies:** 16\
**Last updated:** [July 31, 2025, 2:54pm UTC](https://internals.rust-lang.org/t/idea-another-posible-mod-source-file-location/23285 "2025-07-31T14:54:10Z")

</div>

I find bottersome that if a mod has a single submod, you are forced to create a folder for that single mod or inline the submod or use an include macro. Currently you can put the mod source in one of the following: sr…

---

## [External Dependencies in crates and cross-platform development](https://internals.rust-lang.org/t/external-dependencies-in-crates-and-cross-platform-development/23154)

<div class="topic-metadata">

**Author:** [@Zannick](https://internals.rust-lang.org/u/Zannick)\
**Replies:** 9\
**Last updated:** [July 18, 2025, 7:01pm UTC](https://internals.rust-lang.org/t/external-dependencies-in-crates-and-cross-platform-development/23154 "2025-07-18T19:01:04Z")

</div>

Case Study: My current development environment is VSCode on Windows, using rust-analyzer for code analysis, running tests and debug builds on Windows, and running release builds on WSL. I want to begin using blessed cr…

---

## [Edition 2027: Stop the tests!](https://internals.rust-lang.org/t/edition-2027-stop-the-tests/23187)

<div class="topic-metadata">

**Author:** [@matthieum](https://internals.rust-lang.org/u/matthieum)\
**Replies:** 8\
**Last updated:** [July 9, 2025, 10:50pm UTC](https://internals.rust-lang.org/t/edition-2027-stop-the-tests/23187 "2025-07-09T22:50:06Z")

</div>

TL;DR: cargo test is compiling too much, for nothing. State of the Art I was running cargo test again today, and again I found myself sighing as cargo test was recompiling everything, for nothing. While the test binary…

---

## [More helpful cargo new](https://internals.rust-lang.org/t/more-helpful-cargo-new/23174)

<div class="topic-metadata">

**Author:** [@Dwarsloeper](https://internals.rust-lang.org/u/Dwarsloeper)\
**Replies:** 7\
**Last updated:** [July 5, 2025, 1:48am UTC](https://internals.rust-lang.org/t/more-helpful-cargo-new/23174 "2025-07-05T01:48:49Z")

</div>

It’s nice that cargo new creates a working program. At the same time it’s beyond primitive! Something I initially struggled with (and Rustlings doesn’t teach, despite a chapter on modules) is multi-file layout. So I sugg…

---

## [Libtest: provide position in JSON output](https://internals.rust-lang.org/t/libtest-provide-position-in-json-output/23169)

<div class="topic-metadata">

**Author:** [@rursprung](https://internals.rust-lang.org/u/rursprung)\
**Replies:** 3\
**Last updated:** [July 3, 2025, 2:20pm UTC](https://internals.rust-lang.org/t/libtest-provide-position-in-json-output/23169 "2025-07-03T14:20:11Z")

</div>

since the libtest JSON output is not yet stabilised (Tracking issue for libtest JSON output · Issue #49359 · rust-lang/rust · GitHub) there should still be a chance to get this in: it'd be great if the JSON output would…

---

## [Adding OCI registries as package/index sources](https://internals.rust-lang.org/t/adding-oci-registries-as-package-index-sources/23123)

<div class="topic-metadata">

**Author:** [@Clockwork-Muse](https://internals.rust-lang.org/u/Clockwork-Muse)\
**Replies:** 0\
**Last updated:** [June 23, 2025, 3:12am UTC](https://internals.rust-lang.org/t/adding-oci-registries-as-package-index-sources/23123 "2025-06-23T03:12:03Z")

</div>

I'm interested in adding OCI (docker) registries as package/index sources for cargo. OCI registries can store far more than just Docker images - it's how devcontainer features are distributed, and at least some other la…

---

## [Deprecating having both \`src/lib.rs\` and \`src/main.rs\` in the same package](https://internals.rust-lang.org/t/deprecating-having-both-src-lib-rs-and-src-main-rs-in-the-same-package/23033)

<div class="topic-metadata">

**Author:** [@programmerjake](https://internals.rust-lang.org/u/programmerjake)\
**Replies:** 28\
**Last updated:** [June 13, 2025, 5:19am UTC](https://internals.rust-lang.org/t/deprecating-having-both-src-lib-rs-and-src-main-rs-in-the-same-package/23033 "2025-06-13T05:19:08Z")

</div>

I agree with not sharing src/. I feel like allowing lib.rs and main.rs to be in the same directory has caused a lot of confusion because users may mod something they actually mean to use from the library. If it wasn'…

---

## [Side-discussion (comparing \`foo.rs\` vs \`foo/mod.rs\` & more) from “Deprecating having both \`src/lib.rs\` and \`src/main.rs\` in the same package”](https://internals.rust-lang.org/t/side-discussion-comparing-foo-rs-vs-foo-mod-rs-more-from-deprecating-having-both-src-lib-rs-and-src-main-rs-in-the-same-package/23069)

<div class="topic-metadata">

**Author:** [@steffahn](https://internals.rust-lang.org/u/steffahn)\
**Replies:** 39\
**Last updated:** [June 13, 2025, 4:52am UTC](https://internals.rust-lang.org/t/side-discussion-comparing-foo-rs-vs-foo-mod-rs-more-from-deprecating-having-both-src-lib-rs-and-src-main-rs-in-the-same-package/23069 "2025-06-13T04:52:25Z")

</div>

Replies starting from a reply to in the topic Deprecating having both \`src/lib.rs\` and \`src/main.rs\` in the same package have been moved here to split the parallel discussion threads there.

---

## [Check & warn against license bait-and-switch](https://internals.rust-lang.org/t/check-warn-against-license-bait-and-switch/23081)

<div class="topic-metadata">

**Author:** [@amab8901](https://internals.rust-lang.org/u/amab8901)\
**Replies:** 3\
**Last updated:** [June 12, 2025, 10:17pm UTC](https://internals.rust-lang.org/t/check-warn-against-license-bait-and-switch/23081 "2025-06-12T22:17:19Z")

</div>

I saw tinymce do something interesting: they had MIT licence for versions up until 6.8.4. But they later changed it to GPL. Even though tinymce isn't written in Rust, it's plausible that a similar scenario might happen …

---

## [\[Pre-RFC\] Allow procedural macros to be placed in the same crate (\*package) as app](https://internals.rust-lang.org/t/pre-rfc-allow-procedural-macros-to-be-placed-in-the-same-crate-package-as-app/23005)

<div class="topic-metadata">

**Author:** [@ora-0](https://internals.rust-lang.org/u/ora-0)\
**Replies:** 12\
**Last updated:** [May 31, 2025, 7:34am UTC](https://internals.rust-lang.org/t/pre-rfc-allow-procedural-macros-to-be-placed-in-the-same-crate-package-as-app/23005 "2025-05-31T07:34:03Z")

</div>

Hey! I had an idea about making proc macros easier to use, and kept thinking about it for the past few days. Here is the rfc: EDIT: I wasn't aware of the distinction between crate and package, so anytime you read "crate…

---

## [Problems of \`.cargo/config\` files and possible solutions](https://internals.rust-lang.org/t/problems-of-cargo-config-files-and-possible-solutions/12987)

<div class="topic-metadata">

**Author:** [@phil\_opp](https://internals.rust-lang.org/u/phil_opp)\
**Replies:** 15\
**Last updated:** [May 30, 2025, 6:45pm UTC](https://internals.rust-lang.org/t/problems-of-cargo-config-files-and-possible-solutions/12987 "2025-05-30T18:45:56Z")

</div>

Cargo configuration files (named .cargo/config or .cargo/config.toml) provide extensive configuration options for Cargo invocations. See the official documentation for a detailed explanation of Cargo's configuration syst…

---

## [Stage1-sysroot missing?](https://internals.rust-lang.org/t/stage1-sysroot-missing/22992)

<div class="topic-metadata">

**Author:** [@lynx](https://internals.rust-lang.org/u/lynx)\
**Replies:** 2\
**Last updated:** [May 27, 2025, 2:09pm UTC](https://internals.rust-lang.org/t/stage1-sysroot-missing/22992 "2025-05-27T14:09:55Z")

</div>

I've managed to compile stage1 rustc and cargo (stage1 cargo is build only when I compile stage2 for some reason) after reading through How to build and run the compiler - Rust Compiler Development Guide. bootstrap.toml…

---

## [Syncronizing rustdoc settings across sites](https://internals.rust-lang.org/t/syncronizing-rustdoc-settings-across-sites/22845)

<div class="topic-metadata">

**Author:** [@binarycat](https://internals.rust-lang.org/u/binarycat)\
**Replies:** 19\
**Last updated:** [May 8, 2025, 2:06am UTC](https://internals.rust-lang.org/t/syncronizing-rustdoc-settings-across-sites/22845 "2025-05-08T02:06:44Z")

</div>

currently, there are 4 main ways to interact with rustdoc doc.rust-lang.org docs.rs the local html docs, such as from cargo doc and rustup doc project-specific docs, such as rust.docs.kernel.org The problem is all of…

---

## [Extending the sparse registry protocol for efficient caching/mirroring](https://internals.rust-lang.org/t/extending-the-sparse-registry-protocol-for-efficient-caching-mirroring/22824)

<div class="topic-metadata">

**Author:** [@kornel](https://internals.rust-lang.org/u/kornel)\
**Replies:** 2\
**Last updated:** [May 3, 2025, 8:16pm UTC](https://internals.rust-lang.org/t/extending-the-sparse-registry-protocol-for-efficient-caching-mirroring/22824 "2025-05-03T20:16:56Z")

</div>

The crates.io registry has grown to the point that a crate is published or updated every minute. The git index grows by thousands of new commits per day. Individual Cargo clients have moved to the sparse registry protoc…

[Previous page](https://internals.rust-lang.org/c/tools-and-infrastructure/22.md?page=1)

[Next page](https://internals.rust-lang.org/c/tools-and-infrastructure/22.md?page=3)
