rustio rustio.net
71

ref-cast

v1.0.27 Stable

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.71

Quick Verdict

  • โœ“Actively maintained (updated 52d ago)
  • โœ“Stable API (1.x for 9+ years)
  • โœ“Massive adoption (2.5K crates depend on it)
  • โœ“Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
283.4M
Dependents
2.5K
Releases
37
Size
15KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

43.1M downloads in the last 30 days (1.4M/day), up 21% from the previous period.

๐Ÿ”—
Widely adopted

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

๐Ÿ‘ค
Prolific maintainer

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

โœ…
Stable for 9+ years

The API has been stable (1.x) for over 9 years with 37 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 16/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
403K/day avg-100%
0500K1.0M1.5M2.0M8/229/99/2710/1511/211/19

Top Dependents

Version Adoption

v1.0.25
59%
v1.0.24
19%
v1.0.23
9%
v1.0.27
7%
v1.0.26
6%

Release Timeline

10 releasessince 2023
J
F
M
A
M
J
J
A
S
O
N
D
2023
4
2024
2
2025
2
2026
2
Less
More

README

Loading README...

Maintainers

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