instability

Rust API stability attributes for the rest of us. Fork of the Stability crate

Latest version: 0.3.12 registry icon
Maintenance score
45
Safety score
100
Popularity score
72
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.3.12 0 0 0 0 0
0.3.11 0 0 0 0 0
0.3.10 0 0 0 0 0
0.3.9 0 0 0 0 0
0.3.8 0 0 0 0 0
0.3.7 0 0 0 0 0
0.3.6 0 0 0 0 0
0.3.5 0 0 0 0 0
0.3.4 0 0 0 0 0
0.3.3 0 0 0 0 0
0.3.2 0 0 0 0 0
0.3.1 0 0 0 0 0
0.3.0 0 0 0 0 0

Stability
Latest release:

0.3.12 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



Instability

Rust API stability attributes for the rest of us.

Crate Badge Build Badge Docs Badge License Badge MSRV Badge

Overview

This crate provides attribute macros for specifying API stability of public API items of a crate. It is a fork of the Stability original created by Stephen M. Coakley (@sagebind).

Usage

Add the instability crate to your Cargo.toml file:

cargo add instability

Then, use the #[instability::stable] and #[instability::unstable] attributes to specify the stability of your API items:

/// This function does something really risky!
#[instability::unstable(feature = "risky-function")]
pub fn risky_function() {
    println!("This function is unstable!");
}

/// This function is safe to use!
#[instability::stable(since = "1.0.0")]
pub fn stable_function() {
    println!("This function is stable!");
}

A feature flag prefixed with "unstable-" will be created that can be used to enable unstable items. The macro will append an extra documentation comment that describes the stability of the item. The visibility of the item will be changed to pub(crate) when the feature is not enabled (or when the attribute is on an impl block, the entire block will be removed).

Check out the Docs for detailed usage. See instability-example for a complete example.

MSRV

The minimum supported Rust version (MSRV) is 1.88.0.

License

This project's source code and documentation are licensed under the MIT License.