Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/assert-rs/predicates-rs
Boolean-valued predicate functions in Rust
https://github.com/assert-rs/predicates-rs
predicates rust testing
Last synced: 3 months ago
JSON representation
Boolean-valued predicate functions in Rust
- Host: GitHub
- URL: https://github.com/assert-rs/predicates-rs
- Owner: assert-rs
- License: apache-2.0
- Created: 2017-05-31T15:56:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T20:36:37.000Z (3 months ago)
- Last Synced: 2024-07-26T22:15:15.578Z (3 months ago)
- Topics: predicates, rust, testing
- Language: Rust
- Homepage: docs.rs/predicates
- Size: 649 KB
- Stars: 168
- Watchers: 8
- Forks: 29
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# predicates-rs
> An implementation of **boolean-valued predicate functions** in Rust.
[![Documentation](https://img.shields.io/badge/docs-master-blue.svg)](https://docs.rs/predicates)
![License](https://img.shields.io/crates/l/predicates.svg)
[![Crates.io](https://img.shields.io/crates/v/predicates.svg?maxAge=2592000)](https://crates.io/crates/predicates)[Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md)
## Usage
First, add this to your `Cargo.toml`:
```toml
[dependencies]
predicates = "3.1.2"
```Next, add this to your crate:
```rust
extern crate predicates;use predicates::prelude::*;
```For more information on using predicates, look at the
[documentation](https://docs.rs/predicates)## License
`predicates-rs` is distributed under the terms of both the MIT license and the
Apache License (Version 2.0).* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or )
* MIT license ([LICENSE-MIT](LICENSE-MIT) or )## Credits
Big thanks to [futures-rs](https://github.com/alexcrichton/futures-rs), whose
slick API design informed a lot of decisions made on the API design of this
library.