Debian Codegraph @

.cargo/vendor/bitflags-1.3.2/README.md

raw
1 bitflags
2 ========
3
4 [![Rust](https://github.com/bitflags/bitflags/workflows/Rust/badge.svg)](https://github.com/bitflags/bitflags/actions)
5 [![Join the chat at https://gitter.im/bitflags/Lobby](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bitflags/Lobby?utm_source=badge&utm_medium=badge&utm_content=badge)
6 [![Latest version](https://img.shields.io/crates/v/bitflags.svg)](https://crates.io/crates/bitflags)
7 [![Documentation](https://docs.rs/bitflags/badge.svg)](https://docs.rs/bitflags)
8 ![License](https://img.shields.io/crates/l/bitflags.svg)
9
10 A Rust macro to generate structures which behave like a set of bitflags
11
12 - [Documentation](https://docs.rs/bitflags)
13 - [Release notes](https://github.com/bitflags/bitflags/releases)
14
15 ## Usage
16
17 Add this to your `Cargo.toml`:
18
19 ```toml
20 [dependencies]
21 bitflags = "1.3"
22 ```
23
24 and this to your source code:
25
26 ```rust
27 use bitflags::bitflags;
28 ```
29
30 ## Rust Version Support
31
32 The minimum supported Rust version is 1.46 due to use of associated constants and const functions.