37 releases (stable)

3.1.4 Feb 11, 2026
3.1.3 Dec 19, 2024
3.1.2 Jul 25, 2024
3.1.0 Jan 15, 2024
0.3.0 Jun 26, 2017

#14 in Rust patterns

Download history 1344930/week @ 2025-12-16 656311/week @ 2025-12-23 755096/week @ 2025-12-30 1516377/week @ 2026-01-06 1587255/week @ 2026-01-13 1778351/week @ 2026-01-20 1793351/week @ 2026-01-27 1907589/week @ 2026-02-03 1899957/week @ 2026-02-10 1990915/week @ 2026-02-17 2250767/week @ 2026-02-24 2814673/week @ 2026-03-03 2902872/week @ 2026-03-10 2680723/week @ 2026-03-17 2579240/week @ 2026-03-24 2711137/week @ 2026-03-31

11,350,518 downloads per month
Used in 5,730 crates (2,718 directly)

MIT/Apache

135KB
2.5K SLoC

predicates-rs

An implementation of boolean-valued predicate functions in Rust.

Documentation License Crates.io

Changelog

Usage

First, add this to your Cargo.toml:

[dependencies]
predicates = "3.1.4"

Next, add this to your crate:

extern crate predicates;

use predicates::prelude::*;

For more information on using predicates, look at the documentation

License

Licensed under either of

at your option.

Credits

Big thanks to futures-rs, whose slick API design informed a lot of decisions made on the API design of this library.

Dependencies

~2–3MB
~52K SLoC