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

macro instability

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

4 releases

new 0.3.3 Nov 12, 2024
0.3.2 Jun 27, 2024
0.3.1 Jun 27, 2024
0.3.0 Jun 27, 2024

#731 in Procedural macros

Download history 296/week @ 2024-07-23 516/week @ 2024-07-30 7663/week @ 2024-08-06 14054/week @ 2024-08-13 14966/week @ 2024-08-20 15263/week @ 2024-08-27 21466/week @ 2024-09-03 19622/week @ 2024-09-10 18928/week @ 2024-09-17 28465/week @ 2024-09-24 31906/week @ 2024-10-01 34699/week @ 2024-10-08 39270/week @ 2024-10-15 44082/week @ 2024-10-22 39570/week @ 2024-10-29 41091/week @ 2024-11-05

170,560 downloads per month
Used in 337 crates (via ratatui)

MIT license

35KB
662 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

~0.8–1.2MB
~25K SLoC