| 1 | # predicates-rs |
| 2 | |
| 3 | > An implementation of **boolean-valued predicate functions** in Rust. |
| 4 | |
| 5 | [](https://docs.rs/predicates) |
| 6 |  |
| 7 | [](https://crates.io/crates/predicates) |
| 8 | |
| 9 | [Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md) |
| 10 | |
| 11 | |
| 12 | ## Usage |
| 13 | |
| 14 | First, add this to your `Cargo.toml`: |
| 15 | |
| 16 | ```toml |
| 17 | [dependencies] |
| 18 | predicates = "3.1.3" |
| 19 | ``` |
| 20 | |
| 21 | Next, add this to your crate: |
| 22 | |
| 23 | ```rust |
| 24 | extern crate predicates; |
| 25 | |
| 26 | use predicates::prelude::*; |
| 27 | ``` |
| 28 | |
| 29 | For more information on using predicates, look at the |
| 30 | [documentation](https://docs.rs/predicates) |
| 31 | |
| 32 | ## License |
| 33 | |
| 34 | `predicates-rs` is distributed under the terms of both the MIT license and the |
| 35 | Apache License (Version 2.0). |
| 36 | |
| 37 | * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>) |
| 38 | * MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>) |
| 39 | |
| 40 | ## Credits |
| 41 | |
| 42 | Big thanks to [futures-rs](https://github.com/alexcrichton/futures-rs), whose |
| 43 | slick API design informed a lot of decisions made on the API design of this |
| 44 | library. |