Registry / utility / onig
library6.5.3rscratesunverified

Rust bindings for the Oniguruma regular expression library.

# Cargo.toml [dependencies] onig = "6.5.3"
INSTALL
IMPORT
SIG · ONIG
O
onig
utilityrustv6.5.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Regex
use onig::Regex;

Compiles and uses a regular expression to find digits.

use onig::Regex; fn main() { let regex = Regex::new(r"\d+").unwrap(); let result = regex.find("123abc").unwrap(); println!("Match at: {:?}", result); }
Debug
Known issues
gotchaRequires the Oniguruma C library to be installed on the system.
fix
Install libonig-dev (Linux) or use the bundled feature (onig_sys).
affects: *
Upgrade
Version history
6.5.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
onig — cargo add onig · libregistry