Package · crates.io

scopeguard

crates.io · v1.2.0 · MIT OR Apache-2.0

A RAII scope guard that will run a given closure when it goes out of scope, even if the code between panics (assuming unwinding panic). Defines the macros `defer!`, `defer_on_unwind!`, `defer_on_success!` as shorthands for guards with one of the implemented strategies.

Not filed under any category yet: no assignment reached confidence 0.5.

Install

cargo add scopeguard

Adoption

Downloads (90 days)
239.5M
Observeddownloads / 90 days
Popularity
Top 1% on crates.io
Derived99th percentile within crates.io
Dependents
567
Observedpackages that depend on it
All-time downloads
1.1B
Observedsince first publish
Maintenance
0.09
DerivedRelease cadence and recency, 0 to 1
Releases per year
1.3
11 versions over its life

Growth by period

Derived by Crest of Tech from two observations of crates.io’s own figure, a period apart. Nothing is stored or estimated: without an observation near the period’s start, the period is still collecting.

7 days
Collectinghistory
Collecting
30 days
Collectinghistory
Collecting
90 days
Collectinghistory
Collecting
1 year
Collectinghistory
Collecting

Adoption history

Adoption historydownloads / 90 days

Observations in this range began OCT 5, 2026. The chart appears after 7 observations; 2 so far. Collecting history.

Table of observations (13)
Daydownloads / 90 daysDependents
OCT 24, 2026239,532,184567
OCT 5, 2026216,382,731Not observed
OCT 4, 2026Not observedNot observed
OCT 3, 2026Not observedNot observed
OCT 2, 2026Not observedNot observed
OCT 1, 2026Not observedNot observed
SEP 30, 2026Not observedNot observed
SEP 29, 2026Not observedNot observed
SEP 28, 2026Not observedNot observed
SEP 27, 2026Not observedNot observed
SEP 26, 2026Not observedNot observed
SEP 25, 2026Not observedNot observed
SEP 24, 2026Not observedNot observed

Facts from the registry

Latest version
v1.2.0
11 versions
First published
APR 30, 2015
Last release
JUL 17, 2023
3y ago
Licence
MIT OR Apache-2.0

Repository

Not in the Crest catalog

bluss/scopeguard (GitHub, opens in a new tab)

The catalog tracks GitHub repositories with more than 500 stars; this one has no Crest page, so its figures are not shown here.

Dependencies latest version · v1.2.0

No dependencies are recorded for the latest version.

No related package is in the catalog yet.

Related news

No published news event mentions this package or its repository yet.