rustio rustio.net
65

downcast-rs

v2.0.2 Growing

Trait object downcasting support using only safe Rust. It supports type parameters, associated types, and type constraints.

MIT OR Apache-2.0 Edition 2021 MSRV 1.56
Rust patterns #any#trait#downcast#no_std#associated

Quick Verdict

  • โœ“Stable API (2.x for 10+ years)
  • โœ“Massive adoption (4.4K crates depend on it)
  • โœ“Tiny footprint (13KB, 0 deps)
  • โœ“Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
102.2M
Dependents
4.4K
Releases
15
Size
13KB

Deep Insights

๐Ÿ“Š
Steady growth

7.8M downloads in the last 30 days (261.4K/day), up 8% from the previous period.

๐Ÿ”—
Widely adopted

4.4K crates depend on downcast-rs. Strong ecosystem adoption means battle-tested code and long-term stability.

โš ๏ธ
Single maintainer risk

downcast-rs has only 1 owner despite 4.4K dependents. This is a bus-factor concern โ€” consider the implications for long-term support.

โœ…
Stable for 10+ years

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

๐Ÿชถ
Zero dependencies

downcast-rs has no external dependencies โ€” minimal supply chain risk and fast compile times.

๐Ÿ“
Compact crate

At 12KB, downcast-rs is lightweight. Small crate size correlates with focused, well-scoped functionality.

๐ŸŒŸ
Used by top crates

Notable dependents include diesel, wayland-backend, valico, tantivy, tantivy-columnar. When high-quality crates choose downcast-rs, it's a strong quality signal.

Health Breakdown

Maintenance 8/25

Recency, release consistency, active ratio

Quality 23/25

Yanked ratio, deps, size, maturity, features

Community 14/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
226K/day avg+45%
0100K200K300K12/291/162/32/213/113/28

Top Dependents

Version Adoption

v1.2.1
49%
v1.2.0
40%
v2.0.2
6%
v2.0.1
4%
v1.1.1
1%

Release Timeline

15 releasessince 2015
J
F
M
A
M
J
J
A
S
O
N
D
2015
1
2016
2
2017
1
2018
3
2019
3
2020
1
2021
2022
2023
2024
1
2025
3
2026
Less
More

Feature Flags

default =["std", "sync"]

std*sync*

README

Loading README...

Maintainers

Dependencies
0
direct dependencies
Dependents
4.4K
crates depend on downcast-rs

Similar Crates