#stability #attributes #rest #fork #items #public #public-api

macro instability

Rust API stability attributes for the rest of us. A fork of the stability crate.

3 releases

0.3.2 Jun 27, 2024
0.3.1 Jun 27, 2024
0.3.0 Jun 27, 2024

#222 in Procedural macros

Download history 295/week @ 2024-06-22 147/week @ 2024-06-29 152/week @ 2024-07-06 128/week @ 2024-07-13 272/week @ 2024-07-20 440/week @ 2024-07-27 3176/week @ 2024-08-03 12948/week @ 2024-08-10 14325/week @ 2024-08-17 17291/week @ 2024-08-24 14151/week @ 2024-08-31

59,872 downloads per month
Used in 180 crates (via ratatui)

MIT license

14KB
161 lines

Instability

Rust API stability attributes for the rest of us.

Crates.io Documentation License Minimum supported Rust version Build Build

Overview

This is a fork of the Stability crate with the blessing of the original maintainer Stephen M. Coakley (@sagebind). This crate provides attribute macros for specifying API stability of public API items of a crate. For a quick example:

/// This function does something really risky!
///
/// Don't use it yet!
#[instability::unstable(feature = "risky-function")]
pub fn risky_function() {
    unimplemented!()
}

Please check out the documentation for detailed usage.

Installation

Install via Cargo by adding to your Cargo.toml file:

[dependencies]
instability = "0.3"

Supported Rust versions

The current release is only guaranteed to work with the latest stable Rust compiler.

License

This project's source code and documentation are licensed under the MIT license. See the LICENSE file for details.

Dependencies

~255–700KB
~17K SLoC