rustio rustio.net
47

cast

v0.3.0 Growing

Ergonomic, checked cast functions for primitive types

MIT OR Apache-2.0 Edition 2018
#float#integer#checked#cast#primitive

Quick Verdict

  • โœ•Not updated for 4+ years
  • !Pre-1.0: API may have breaking changes
  • โœ“Massive adoption (1.8K crates depend on it)
  • โœ“Tiny footprint (11KB, 1 deps)
  • โœ“Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
160.7M
Dependents
1.8K
Releases
10
Size
11KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

11.8M downloads in the last 30 days (394.9K/day), up 25% from the previous period.

๐Ÿ”—
Widely adopted

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

๐Ÿ‘ค
Prolific maintainer

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

๐Ÿ”ฌ
Pre-1.0 for over a year

Despite being 10+ years old, cast hasn't reached 1.0 yet. Expect potential API changes between versions.

๐Ÿชถ
Minimal dependencies

Only 1 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.

๐Ÿ“
Compact crate

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

๐ŸŒŸ
Used by top crates

Notable dependents include criterion, criterion-plot, wasm-bindgen-test, linux-embedded-hal, codspeed-criterion-compat-walltime. When high-quality crates choose cast, it's a strong quality signal.

Health Breakdown

Maintenance 3/25

Recency, release consistency, active ratio

Quality 12/25

Yanked ratio, deps, size, maturity, features

Community 12/20

Reverse deps, ownership, ecosystem

Popularity 8/15

Downloads, momentum, growth trend

Documentation 12/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
311K/day avg+71%
0100K200K300K400K500K12/291/162/32/213/113/28

Top Dependents

Version Adoption

v0.3.0
87%
v0.2.7
8%
v0.2.3
3%
v0.2.2
1%
v0.2.6
1%

Release Timeline

10 releases1 yankedsince 2016
J
F
M
A
M
J
J
A
S
O
N
D
2016
1
2017
3
2018
2019
1
2020
2021
5
2022
2023
2024
2025
2026
Less
More|
Yanked

Feature Flags

std

README

Loading README...

Maintainers

Dependencies
1
direct dependencies
Dependents
1.8K
crates depend on cast

Similar Crates