# Cargo / crate statistics on nixpkgs of 2300 rust projects

**URL:** <https://internals.rust-lang.org/t/cargo-crate-statistics-on-nixpkgs-of-2300-rust-projects/24647>\
**Category:** Uncategorized\
**Created:** [September 30, 2026, 10:52am UTC](https://internals.rust-lang.org/t/cargo-crate-statistics-on-nixpkgs-of-2300-rust-projects/24647 "2026-09-30T10:52:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qknight](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/qknight/32/13887_2.png) [@qknight](https://internals.rust-lang.org/u/qknight)\
**Post date:** [September 30, 2026, 10:52am UTC](https://internals.rust-lang.org/t/cargo-crate-statistics-on-nixpkgs-of-2300-rust-projects/24647/1 "2026-09-30T10:52:19Z")

</div>

i've been doing a study on the rust/cargo and therefore crate usage of 2300 rust projects in nixpkgs you might want to look at:

> **[libnix impact study](https://lastlog.de/blog/libnix_impact_study.html)**

(it is framed for libnix usage but the statistics are actually independent of this and are probably interesting for rust upstream)

---

<div class="post-metadata">

**Author:** ![ekuber](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/ekuber/32/1646_2.png) [@ekuber](https://internals.rust-lang.org/u/ekuber)\
**Post date:** [October 19, 2026, 8:41pm UTC](https://internals.rust-lang.org/t/cargo-crate-statistics-on-nixpkgs-of-2300-rust-projects/24647/2 "2026-10-19T20:41:04Z")

</div>

Interesting to see `cfg-if` that high in the list. It is a macro that doesn't need to change, specially because its functionality is now in std with `cfg_select! {}`, so the crate has no need to be updated, not it ever needed many features, which means that it is a prime candidate for being shared easily, but at the same time we should expect the crate to stop being used as the ecosystem raises their MSRV.

---

<div class="post-metadata">

**Author:** ![mathstuf](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mathstuf](https://internals.rust-lang.org/u/mathstuf)\
**Post date:** [October 19, 2026, 11:48pm UTC](https://internals.rust-lang.org/t/cargo-crate-statistics-on-nixpkgs-of-2300-rust-projects/24647/3 "2026-10-19T23:48:49Z")

</div>

`cfg_select!` is new in 1.95. The crates I see using `cfg-if` in the lockfiles I have around include:

- `backtrace`
- `getrandom`
- `sha2`
- `log`
- `tempfile`
- `ring`
- `parking_lot_core`
- `md-5`
- `sha1`

I don't think we're close to these having an MSRV ≥ 1.95 any time soon. While its days are (hopefully) numbered, I expect it to have a long tail of stragglers.
