Sunbeam Studios

Our open-source projects, here for you!

matchers (0.2.0)

Published 2026-03-26 11:00:20 +00:00 by siennathesane

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add matchers@0.2.0

About this package

Regex matching on character and byte streams.

matchers

Regular expression matching on Rust streams.

Crates.io Documentation MIT licensed CI

Overview

The regex crate implements regular expression matching on strings and byte arrays. However, in order to match the output of implementations of fmt::Debug and fmt::Display, or by any code which writes to an instance of fmt::Write or io::Write, it is necessary to first allocate a buffer, write to that buffer, and then match the buffer against a regex.

In cases where it is not necessary to extract substrings, but only to test whether or not output matches a regex, it is not strictly necessary to allocate and write this output to a buffer. This crate provides a simple interface on top of the lower-level regex-automata library that implements fmt::Write and io::Write for regex patterns. This may be used to test whether streaming output matches a pattern without buffering that output.

Users who need to extract substrings based on a pattern or who already have buffered data should probably use the regex crate instead.

Dependencies

ID Version
regex-automata ^0.4

Keywords

regex match pattern streaming
Details
Cargo
2026-03-26 11:00:20 +00:00
0
Eliza Weisman <eliza@buoyant.io>
MIT
6.2 KiB
Assets (1)
Versions (1) View all
0.2.0 2026-03-26