rustio rustio.net
49

clamped

v1.0.0 Growing

Simple clamping of numbers in Rust

MIT Edition 2018
AlgorithmsNo standard library #math#arithmetic#clamp#saturated#bound

Quick Verdict

  • โœ•Not updated for 6+ years
  • โœ“Stable API (1.x for 6+ years)
  • โœ“Tiny footprint (5KB, 0 deps)
  • โœ“Permissive license (MIT)

Security

Checking security advisories...
Downloads
13.7K
Dependents
36
Releases
1
Size
5KB

Deep Insights

๐Ÿ“Š
Steady growth

343 downloads in the last 30 days (11/day), up 10% from the previous period.

โœ…
Stable for 6+ years

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

๐Ÿชถ
Zero dependencies

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

๐Ÿ“
Compact crate

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

๐ŸŒŸ
Used by top crates

Notable dependents include nvg, drawing_gl, nona, nvgx. When high-quality crates choose clamped, it's a strong quality signal.

Health Breakdown

Maintenance 1/25

Recency, release consistency, active ratio

Quality 24/25

Yanked ratio, deps, size, maturity, features

Community 10/20

Reverse deps, ownership, ecosystem

Popularity 5/15

Downloads, momentum, growth trend

Documentation 9/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
11/day avg+12%
051015202512/291/162/32/213/113/28

Top Dependents

Version Adoption

v1.0.0
100%

Release Timeline

1 releasessince 2019
J
F
M
A
M
J
J
A
S
O
N
D
2019
1
2020
2021
2022
2023
2024
2025
2026
Less
More

Feature Flags

default =["clamp_trait"]

clamp_fnclamp_macroclamp_trait*inline_always

README

Loading README...

Maintainers

Dependencies
0
direct dependencies
Dependents
36
crates depend on clamped

Similar Crates