rustio rustio.net
66

ref-cast

v1.0.25 Growing

Safely cast &T to &U where the struct U contains a single field of type T.

MIT OR Apache-2.0 Edition 2021 MSRV 1.61

Quick Verdict

  • โœ“Stable API (1.x for 8+ years)
  • โœ“Massive adoption (1.9K crates depend on it)
  • โœ“Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
106.9M
Dependents
1.9K
Releases
35
Size
15KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

15.0M downloads in the last 30 days (499.6K/day), up 29% from the previous period.

๐Ÿ”—
Widely adopted

1.9K crates depend on ref-cast. Strong ecosystem adoption means battle-tested code and long-term stability.

๐Ÿ‘ค
Prolific maintainer

The primary maintainer publishes 231 crates. This suggests deep Rust expertise and long-term commitment to the ecosystem.

โœ…
Stable for 8+ years

The API has been stable (1.x) for over 8 years with 35 releases. This level of maturity means you can depend on it without worrying about breaking changes.

๐Ÿ“
Compact crate

At 15KB, ref-cast is lightweight. Small crate size correlates with focused, well-scoped functionality.

๐ŸŒŸ
Used by top crates

Notable dependents include syn, thiserror, serde_json, schemars, ref-cast-impl. When high-quality crates choose ref-cast, it's a strong quality signal.

Health Breakdown

Maintenance 11/25

Recency, release consistency, active ratio

Quality 19/25

Yanked ratio, deps, size, maturity, features

Community 13/20

Reverse deps, ownership, ecosystem

Popularity 8/15

Downloads, momentum, growth trend

Documentation 15/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
389K/day avg+71%
0200K400K600K12/291/162/32/213/113/28

Top Dependents

Version Adoption

v1.0.24
40%
v1.0.25
35%
v1.0.23
18%
v1.0.20
4%
v1.0.22
3%

Release Timeline

35 releasessince 2017
J
F
M
A
M
J
J
A
S
O
N
D
2017
2
2018
5
2019
3
2020
6
2021
2022
8
2023
7
2024
2
2025
2
2026
Less
More

README

Loading README...

Maintainers

Dependencies
4
direct dependencies
Dependents
1.9K
crates depend on ref-cast