#stability #attributes #rest #api #quick

macro stability

Rust API stability attributes for the rest of us

2 releases

0.1.1 Jan 11, 2022
0.1.0 Oct 23, 2020

37 downloads per month

MIT license

11KB
124 lines

Stability

Rust API stability attributes for the rest of us.

Crates.io Documentation License Build

Overview

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!
#[stability::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]
stability = "0.1"

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

~285–700KB
~17K SLoC

{a