diff --git a/matches/Cargo.toml b/matches/Cargo.toml index bf12269..7e02d6d 100644 --- a/matches/Cargo.toml +++ b/matches/Cargo.toml @@ -1,7 +1,6 @@ [package] name = "matches" -version = "0.1.9" -authors = ["Simon Sapin "] +version = "0.1.10" license = "MIT" repository = "https://github.com/SimonSapin/rust-std-candidates" description = "A macro to evaluate, as a boolean, whether an expression matches a pattern." diff --git a/matches/README.md b/matches/README.md new file mode 100644 index 0000000..543ba1b --- /dev/null +++ b/matches/README.md @@ -0,0 +1,7 @@ +A macro to evaluate, as a boolean, whether an expression matches a pattern. + +For users who build using only Rust 1.42 and newer, consider using [`std::matches`], which +is included in the [standard library prelude] and thus is automatically in scope. + +[`std::matches`]: core::matches +[standard library prelude]: https://doc.rust-lang.org/stable/reference/names/preludes.html