rustio rustio.net
52

duck-trait

v0.13.1 Experimental

Generate duck-typing accessor traits (get / set / get_mut): declare once in _fields.rs with fields!, every struct field implements them by default under #[props] — ignore fields with #[_prop], or use the scoped #[duck] marker api.

MIT OR Apache-2.0 Edition 2024 MSRV 1.85
Rust patternsDevelopment tools::Procedural macro helpers #setter#proc-macro#getter#accessor#duck-typing

Quick Verdict

  • ✓Actively maintained (updated 37d ago)
  • !Pre-1.0: API may have breaking changes
  • ✓Tiny footprint (17KB, 3 deps)
  • ✓Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
156
Dependents
0
Releases
10
Size
17KB

Deep Insights

📉
Download decline

20 downloads in the last 30 days, down 85% from the previous period. May indicate migration to alternatives.

🪶
Minimal dependencies

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

📐
Compact crate

At 16KB, duck-trait is lightweight. Small crate size correlates with focused, well-scoped functionality.

Health Breakdown

Maintenance 17/25

Recency, release consistency, active ratio

Quality 14/25

Yanked ratio, deps, size, maturity, features

Community 6/20

Reverse deps, ownership, ecosystem

Popularity 3/15

Downloads, momentum, growth trend

Documentation 12/15

Docs, repo, license, metadata

Download Trend

Daily downloads · last 90 days
0/day avg
08/239/109/2810/1611/311/20

Version Adoption

v0.10.2
22%
v0.10.3
21%
v0.9.1
20%
v0.11.0
20%
v0.10.0
18%

Release Timeline

10 releasessince 2026
J
F
M
A
M
J
J
A
S
O
N
D
2026
10
Less
More

README

Loading README...

Maintainers

Dependencies
3
direct dependencies
Dependents
0
crates depend on duck-trait

Similar Crates