rustio rustio.net
43

guard

v0.5.2 Growing

Macro implementation of RFC 1303: a guard-let-else statement a la Swift

MIT/Apache-2.0
Rust patterns #guard#let#else#1303#if

Quick Verdict

  • โœ•Not updated for 3+ years
  • !Pre-1.0: API may have breaking changes
  • โœ“Tiny footprint (9KB, 0 deps)
  • โœ“Permissive license (MIT/Apache-2.0)

Security

Checking security advisories...
Downloads
654.3K
Dependents
46
Releases
18
Size
9KB

Deep Insights

๐Ÿ“Š
Stable downloads

867 downloads in the last 30 days (29/day). Volume is roughly flat compared to the previous period.

๐Ÿ”ฌ
Pre-1.0 for over a year

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

๐Ÿชถ
Zero dependencies

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

๐Ÿ“
Compact crate

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

โš ๏ธ
Notable yanked versions

11% of releases have been yanked. Check version history before pinning.

๐ŸŒŸ
Used by top crates

Notable dependents include agora, xls2txt, crabby-merge, ea-command. When high-quality crates choose guard, it's a strong quality signal.

Health Breakdown

Maintenance 4/25

Recency, release consistency, active ratio

Quality 14/25

Yanked ratio, deps, size, maturity, features

Community 10/20

Reverse deps, ownership, ecosystem

Popularity 7/15

Downloads, momentum, growth trend

Documentation 8/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
0/day avg
03/184/54/235/115/296/15

Top Dependents

Version Adoption

v0.5.1
68%
v0.5.2
27%
v0.5.0
4%
v0.3.3
0%
v0.2.6
0%

Release Timeline

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

Feature Flags

debugnightly

README

Loading README...

Maintainers

Dependencies
0
direct dependencies
Dependents
46
crates depend on guard

Similar Crates