# tools and infrastructure

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

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

**Page:** 2

---

## [Cargo project config unification](https://internals.rust-lang.org/t/cargo-project-config-unification/24082)

<div class="topic-metadata">

**Author:** [@zackw](https://internals.rust-lang.org/u/zackw)\
**Replies:** 4\
**Last updated:** [March 14, 2026, 11:37pm UTC](https://internals.rust-lang.org/t/cargo-project-config-unification/24082 "2026-03-14T23:37:54Z")

</div>

Where are we at on merging .cargo/config.toml into Cargo.toml?

---

## [Optional features are part of the crate — the project should say so](https://internals.rust-lang.org/t/optional-features-are-part-of-the-crate-the-project-should-say-so/24069)

<div class="topic-metadata">

**Author:** [@tomveens](https://internals.rust-lang.org/u/tomveens)\
**Replies:** 20\
**Last updated:** [March 13, 2026, 10:33am UTC](https://internals.rust-lang.org/t/optional-features-are-part-of-the-crate-the-project-should-say-so/24069 "2026-03-13T10:33:28Z")

</div>

When a crate defines an optional feature like mock, and there's a module behind #\[cfg(feature = "mock")\], that code is part of the crate. It compiles. It’s tested. It’s documented. It’s not an afterthought — it’s intenti…

---

## [Alternative to \`cargo new\` templates: examples as build-target templates](https://internals.rust-lang.org/t/alternative-to-cargo-new-templates-examples-as-build-target-templates/24047)

<div class="topic-metadata">

**Author:** [@epage](https://internals.rust-lang.org/u/epage)\
**Replies:** 14\
**Last updated:** [March 6, 2026, 3:14pm UTC](https://internals.rust-lang.org/t/alternative-to-cargo-new-templates-examples-as-build-target-templates/24047 "2026-03-06T15:14:34Z")

</div>

Looking for thoughts on an alternative idea to what we normally think of as templates for cargo new and some brainstorming on the CLI. From both the Cargo team and the community, there has long been an interest to havin…

---

## [Child Thread: Survey of alternative identifier designs for Cargo and Crates.io](https://internals.rust-lang.org/t/child-thread-survey-of-alternative-identifier-designs-for-cargo-and-crates-io/24029)

<div class="topic-metadata">

**Author:** [@epage](https://internals.rust-lang.org/u/epage)\
**Replies:** 13\
**Last updated:** [March 1, 2026, 2:49pm UTC](https://internals.rust-lang.org/t/child-thread-survey-of-alternative-identifier-designs-for-cargo-and-crates-io/24029 "2026-03-01T14:49:44Z")

</div>

For background context and links to other threads, see Survey of organizational ownership and registry namespace designs for Cargo and Crates.io. This thread assumes that one has been read. This thread is for summarizi…

---

## [Survey of organizational ownership and registry namespace designs for Cargo and Crates.io](https://internals.rust-lang.org/t/survey-of-organizational-ownership-and-registry-namespace-designs-for-cargo-and-crates-io/24027)

<div class="topic-metadata">

**Author:** [@epage](https://internals.rust-lang.org/u/epage)\
**Replies:** 3\
**Last updated:** [February 23, 2026, 3:10pm UTC](https://internals.rust-lang.org/t/survey-of-organizational-ownership-and-registry-namespace-designs-for-cargo-and-crates-io/24027 "2026-02-23T15:10:14Z")

</div>

Every once in a while, namespacing support on crates.io comes up among many different use cases. This is an attempt to collect the information on this topic to reduce the conversations from falling into spinning in circl…

---

## [Category for \*-derive crates](https://internals.rust-lang.org/t/category-for-derive-crates/24008)

<div class="topic-metadata">

**Author:** [@Evian-Zhang](https://internals.rust-lang.org/u/Evian-Zhang)\
**Replies:** 9\
**Last updated:** [February 15, 2026, 8:59pm UTC](https://internals.rust-lang.org/t/category-for-derive-crates/24008 "2026-02-15T20:59:26Z")

</div>

It's common that when a crate uses custom derive macros, the developer also publishes a \*-derive crate, and re-export the derive macros in the main crate. However, what category should those \*-derive crates belong to? c…

---

## [What prevents Cargo from adding \`\[bench/bin/example-dependencies\]\`?](https://internals.rust-lang.org/t/what-prevents-cargo-from-adding-bench-bin-example-dependencies/24004)

<div class="topic-metadata">

**Author:** [@newpavlov](https://internals.rust-lang.org/u/newpavlov)\
**Replies:** 13\
**Last updated:** [February 15, 2026, 4:08am UTC](https://internals.rust-lang.org/t/what-prevents-cargo-from-adding-bench-bin-example-dependencies/24004 "2026-02-15T04:08:40Z")

</div>

Lack of finer-grained dependencies can be particularly annoying when you want to use criterion for benchmarks, but do not want to compile it for every test run. The widely used in the ecosystem workaround with a separate…

---

## [Federated Registries?](https://internals.rust-lang.org/t/federated-registries/23996)

<div class="topic-metadata">

**Author:** [@Dwarsloeper](https://internals.rust-lang.org/u/Dwarsloeper)\
**Replies:** 4\
**Last updated:** [February 11, 2026, 11:23pm UTC](https://internals.rust-lang.org/t/federated-registries/23996 "2026-02-11T23:23:50Z")

</div>

We are struggling with how to set up cargo. The way we publish things inhouse, the cleanest would be one registry per internal organisation. Artifactory has federated registries for other languages but not for cargo. Thi…

---

## [Should there be a way to override the version of patched crates?](https://internals.rust-lang.org/t/should-there-be-a-way-to-override-the-version-of-patched-crates/23956)

<div class="topic-metadata">

**Author:** [@crumblingstatue](https://internals.rust-lang.org/u/crumblingstatue)\
**Replies:** 2\
**Last updated:** [January 24, 2026, 10:39pm UTC](https://internals.rust-lang.org/t/should-there-be-a-way-to-override-the-version-of-patched-crates/23956 "2026-01-24T22:39:13Z")

</div>

\[patch\] is super useful when you want to test bug fixes and new features for your library crate, since you can integrate the in-development version into your complex project. I used to bump the version number of a crate…

---

## [Rustdoc: Show if a type has drop glue](https://internals.rust-lang.org/t/rustdoc-show-if-a-type-has-drop-glue/23940)

<div class="topic-metadata">

**Author:** [@benw](https://internals.rust-lang.org/u/benw)\
**Replies:** 3\
**Last updated:** [January 20, 2026, 5:48am UTC](https://internals.rust-lang.org/t/rustdoc-show-if-a-type-has-drop-glue/23940 "2026-01-20T05:48:43Z")

</div>

I don't think rustdoc currently documents whether a type has drop glue. I'm wondering if this might be a useful addition, given that the addition of drop glue to a type (either by impl Drop or adding a field with drop gl…

---

## [Is it possible to standardize additional config file naming?](https://internals.rust-lang.org/t/is-it-possible-to-standardize-additional-config-file-naming/23900)

<div class="topic-metadata">

**Author:** [@DidingasLushis](https://internals.rust-lang.org/u/DidingasLushis)\
**Replies:** 5\
**Last updated:** [January 15, 2026, 4:22am UTC](https://internals.rust-lang.org/t/is-it-possible-to-standardize-additional-config-file-naming/23900 "2026-01-15T04:22:16Z")

</div>

My projects often have: ├── .cargo/ │ └── config.toml ├── Cargo.toml ├── src/ ├── rustfmt.toml └── rust-toolchain.toml Having files of different names scheme (ex: rustfmt.toml not rust-fmt.toml like rust-toolchain…

---

## [Rustup makes little sense](https://internals.rust-lang.org/t/rustup-makes-little-sense/23873)

<div class="topic-metadata">

**Author:** [@pino1536](https://internals.rust-lang.org/u/pino1536)\
**Replies:** 37\
**Last updated:** [January 10, 2026, 4:45pm UTC](https://internals.rust-lang.org/t/rustup-makes-little-sense/23873 "2026-01-10T16:45:44Z")

</div>

Maybe I am not really authorized to use the internals forum but somehow it can be good to hear a opinion from a completely newcomer to Rust about the setup process. (=someone who never cared about rust at all) First of …

---

## [\`\[features\]\` in Cargo.toml should be allowed to have a description](https://internals.rust-lang.org/t/features-in-cargo-toml-should-be-allowed-to-have-a-description/23905)

<div class="topic-metadata">

**Author:** [@idanarye](https://internals.rust-lang.org/u/idanarye)\
**Replies:** 2\
**Last updated:** [January 7, 2026, 2:20am UTC](https://internals.rust-lang.org/t/features-in-cargo-toml-should-be-allowed-to-have-a-description/23905 "2026-01-07T02:20:01Z")

</div>

(I see that this was suggested in the past, but that post has no comments and got auto-closed: \[Pre-RFC\] Rust and features (cargo) discoverability) Currently there is no standard way to document features. At most, you m…

---

## [\`cargo install --locked\` or not locked middle ground?](https://internals.rust-lang.org/t/cargo-install-locked-or-not-locked-middle-ground/23893)

<div class="topic-metadata">

**Author:** [@kornel](https://internals.rust-lang.org/u/kornel)\
**Replies:** 11\
**Last updated:** [January 6, 2026, 4:09pm UTC](https://internals.rust-lang.org/t/cargo-install-locked-or-not-locked-middle-ground/23893 "2026-01-06T16:09:25Z")

</div>

cargo install crate-cli has a dilemma: Respecting the crate's lockfile makes dependencies more predictable, match what the crate author has tested with, and less likely to break due to semver violations in dependency …

---

## [Feature Request:Add cargo binstall by default](https://internals.rust-lang.org/t/feature-request-add-cargo-binstall-by-default/23876)

<div class="topic-metadata">

**Author:** [@greentic-ai](https://internals.rust-lang.org/u/greentic-ai)\
**Replies:** 10\
**Last updated:** [January 2, 2026, 8:35pm UTC](https://internals.rust-lang.org/t/feature-request-add-cargo-binstall-by-default/23876 "2026-01-02T20:35:31Z")

</div>

Installing from source via cargo install takes quite some time. It would be good if cargo binstall would be available by default and would not have to be installed manually. This way many CLIs would just need to say: To …

---

## [Optimistic \`cargo run\` for faster compile/iteration times](https://internals.rust-lang.org/t/optimistic-cargo-run-for-faster-compile-iteration-times/23857)

<div class="topic-metadata">

**Author:** [@DragonDev1906](https://internals.rust-lang.org/u/DragonDev1906)\
**Replies:** 6\
**Last updated:** [December 31, 2025, 1:17pm UTC](https://internals.rust-lang.org/t/optimistic-cargo-run-for-faster-compile-iteration-times/23857 "2025-12-31T13:17:50Z")

</div>

The best optimization is if you don't have to do something, but I think we can all agree that there is not much that can/should be removed. We do want a lot of compile time checks. But what if we could do these later \[1…

---

## [New rust backend: libnix](https://internals.rust-lang.org/t/new-rust-backend-libnix/23848)

<div class="topic-metadata">

**Author:** [@qknight](https://internals.rust-lang.org/u/qknight)\
**Replies:** 2\
**Last updated:** [December 26, 2025, 1:16am UTC](https://internals.rust-lang.org/t/new-rust-backend-libnix/23848 "2025-12-26T01:16:16Z")

</div>

Hi everyone, TL;DR; Seeking permission to use the cargo/rust trademarks for my work on cargo at GitHub - nixcloud/cargo: The Rust package manager which is intended as a PR to upstream cargo Seeking guidance/advice on t…

---

## [Profile overrides for a package \*and dependencies\*?](https://internals.rust-lang.org/t/profile-overrides-for-a-package-and-dependencies/23813)

<div class="topic-metadata">

**Author:** [@jrose](https://internals.rust-lang.org/u/jrose)\
**Replies:** 5\
**Last updated:** [December 14, 2025, 4:03am UTC](https://internals.rust-lang.org/t/profile-overrides-for-a-package-and-dependencies/23813 "2025-12-14T04:03:28Z")

</div>

At work we care about code size as well as run-time performance, and the most obvious knob for that is opt\_level = "s". Cargo profile overrides allow us to get more fine-grained by compiling some specific packages one wa…

---

## [\[Feature Request\] rustdoc: Support Markdown](https://internals.rust-lang.org/t/feature-request-rustdoc-support-markdown/23068)

<div class="topic-metadata">

**Author:** [@trymeouteh](https://internals.rust-lang.org/u/trymeouteh)\
**Replies:** 7\
**Last updated:** [December 8, 2025, 7:38pm UTC](https://internals.rust-lang.org/t/feature-request-rustdoc-support-markdown/23068 "2025-12-08T19:38:40Z")

</div>

Please add support for generating markdown files from rust documentation comments. By generating markdown files, we can easily add these files to our github projects as the documentation of the project and these markdown…

---

## [Rustdoc: resolve actual types in item definitions?](https://internals.rust-lang.org/t/rustdoc-resolve-actual-types-in-item-definitions/22626)

<div class="topic-metadata">

**Author:** [@PonasKovas](https://internals.rust-lang.org/u/PonasKovas)\
**Replies:** 2\
**Last updated:** [December 4, 2025, 9:05pm UTC](https://internals.rust-lang.org/t/rustdoc-resolve-actual-types-in-item-definitions/22626 "2025-12-04T21:05:58Z")

</div>

Hello, I'm generating some structs using macros and I specify the types of the fields using an associated type of another type, which is very convenient for me because of how my stuff is structured. For example: pub st…

---

## [Environmental variable for reading the user's package directory](https://internals.rust-lang.org/t/environmental-variable-for-reading-the-users-package-directory/23782)

<div class="topic-metadata">

**Author:** [@davidhozic](https://internals.rust-lang.org/u/davidhozic)\
**Replies:** 4\
**Last updated:** [November 29, 2025, 12:06am UTC](https://internals.rust-lang.org/t/environmental-variable-for-reading-the-users-package-directory/23782 "2025-11-29T00:06:14Z")

</div>

Hello, I'm currently trying to create a build.rs for a library crate. I would like to know if there is, and if there isn't request, an environmental variable that tells the build script where the user's Cargo.toml or ro…

---

## [Pre-RFC: Split \`CARGO\_HOME\`](https://internals.rust-lang.org/t/pre-rfc-split-cargo-home/19747)

<div class="topic-metadata">

**Author:** [@epage](https://internals.rust-lang.org/u/epage)\
**Replies:** 88\
**Last updated:** [November 21, 2025, 9:30pm UTC](https://internals.rust-lang.org/t/pre-rfc-split-cargo-home/19747 "2025-11-21T21:30:35Z")

</div>

Summary Today, cargo stores all user-global files in CARGO\_HOME (~/.cargo), including Caches Config Installed binaries Similarly, rustup stores all user-global files in ~/.rustup. This RFC would provide a way for use…

---

## [Rustdoc Idea: toggling to disable hard-coded font series](https://internals.rust-lang.org/t/rustdoc-idea-toggling-to-disable-hard-coded-font-series/23744)

<div class="topic-metadata">

**Author:** [@ilsubyeega](https://internals.rust-lang.org/u/ilsubyeega)\
**Replies:** 0\
**Last updated:** [November 21, 2025, 12:05pm UTC](https://internals.rust-lang.org/t/rustdoc-idea-toggling-to-disable-hard-coded-font-series/23744 "2025-11-21T12:05:36Z")

</div>

I believe the fonts for rustdoc, docs.rs are hardcoded by default. The only way to change the font is to switch another hard-coded sans serif font series. While i can comfortably read with sans serif fonts but not serif,…

---

## [Exclude .github and .gitignore from published packages by default?](https://internals.rust-lang.org/t/exclude-github-and-gitignore-from-published-packages-by-default/23700)

<div class="topic-metadata">

**Author:** [@newpavlov](https://internals.rust-lang.org/u/newpavlov)\
**Replies:** 16\
**Last updated:** [November 20, 2025, 11:02am UTC](https://internals.rust-lang.org/t/exclude-github-and-gitignore-from-published-packages-by-default/23700 "2025-11-20T11:02:46Z")

</div>

Recently I was a bit surprised that Cargo includes .github/ and .gitignore into packages generated for crates hosted in a one-crate repository (e.g. see here). Interestingly, Cargo already ignores items listed in .gitign…

---

## [Improving usability of having many nearly-identical methods](https://internals.rust-lang.org/t/improving-usability-of-having-many-nearly-identical-methods/23712)

<div class="topic-metadata">

**Author:** [@kornel](https://internals.rust-lang.org/u/kornel)\
**Replies:** 28\
**Last updated:** [November 20, 2025, 8:53am UTC](https://internals.rust-lang.org/t/improving-usability-of-having-many-nearly-identical-methods/23712 "2025-11-20T08:53:51Z")

</div>

Rust libraries, especially the standard library, often end up having multiple slightly different variants of methods: try\_, \_checked/\_unchecked \_ref, \_mut, and occasionally \_ptr, \_mut\_ptr, \_drop split and search × for…

---

## [Discussion: Enhanced License Compliance for crates.io](https://internals.rust-lang.org/t/discussion-enhanced-license-compliance-for-crates-io/23688)

<div class="topic-metadata">

**Author:** [@Eixix](https://internals.rust-lang.org/u/Eixix)\
**Replies:** 21\
**Last updated:** [November 9, 2025, 1:27pm UTC](https://internals.rust-lang.org/t/discussion-enhanced-license-compliance-for-crates-io/23688 "2025-11-09T13:27:39Z")

</div>

Discussion: Enhanced License Compliance for crates.io Summary I'd like to start a discussion about implementing enhanced license validation and compliance checking for crates published to crates.io to address critical ga…

---

## [Making profiles more flexible and useful?](https://internals.rust-lang.org/t/making-profiles-more-flexible-and-useful/23673)

<div class="topic-metadata">

**Author:** [@recatek](https://internals.rust-lang.org/u/recatek)\
**Replies:** 7\
**Last updated:** [November 3, 2025, 4:43am UTC](https://internals.rust-lang.org/t/making-profiles-more-flexible-and-useful/23673 "2025-11-03T04:43:57Z")

</div>

I've been running into a number of frustrations with how profiles are handled in Rust build tooling and its ecosystem. I think this frustration can be illustrated with this set of features in the log crate. To explain, …

---

## [Add ICON from crates.io to the cargo executable on windows](https://internals.rust-lang.org/t/add-icon-from-crates-io-to-the-cargo-executable-on-windows/23597)

<div class="topic-metadata">

**Author:** [@ShadowDara](https://internals.rust-lang.org/u/ShadowDara)\
**Replies:** 7\
**Last updated:** [October 15, 2025, 6:59pm UTC](https://internals.rust-lang.org/t/add-icon-from-crates-io-to-the-cargo-executable-on-windows/23597 "2025-10-15T18:59:16Z")

</div>

Like i already wrote in this PR, i would like to the add the crates.io ICON for the cargo programm

---

## [Add new build-script instruction cargo::no-more-influence-on-crate-compilation-after-this](https://internals.rust-lang.org/t/add-new-build-script-instruction-cargo-no-more-influence-on-crate-compilation-after-this/23528)

<div class="topic-metadata">

**Author:** [@NobodyXu](https://internals.rust-lang.org/u/NobodyXu)\
**Replies:** 13\
**Last updated:** [October 8, 2025, 2:56am UTC](https://internals.rust-lang.org/t/add-new-build-script-instruction-cargo-no-more-influence-on-crate-compilation-after-this/23528 "2025-10-08T02:56:01Z")

</div>

motivation Currently, all crates that bindgens, compiles or finds external dependencies have to wait for compilation/lookup of compiler artifacts to be done before compilation can continue. For example, zstd-sys takes r…

---

## [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…

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

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