diff --git a/Cargo.toml b/Cargo.toml index 3babdf7..8a74d1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ keywords = ["regex", "match", "pattern", "streaming"] maintenance = { status = "experimental" } [dependencies] -regex-automata = { version = "0.4", default-features = false, features = ["syntax", "dfa-build", "dfa-search"] } +regex-automata = { version = "0.4", default-features = false, features = ["std", "syntax", "dfa-build", "dfa-search"] } [features] unicode = ["regex-automata/unicode"] diff --git a/src/lib.rs b/src/lib.rs index fd05e07..2ccd9a9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -321,6 +321,14 @@ impl io::Write for Matcher { } } +const _: () = { + fn assert_is_std_error() {} + + fn assert_build_error_is_std_error() { + assert_is_std_error::(); + } +}; + #[cfg(test)] mod test { use super::*;