Skip to content

Conversation

@huevosabio
Copy link
Contributor

Allows downstream users to opt out of onig and use fancy-regex instead

We were running into nasty segfault issues when trying to link model2vec-rs with C# bindings on Linux and it turns out it was some sort of issue with onig dependency on tokenizers.

This allows us to bypass that and use the rust-only fancy-regex crate.

@Pringled
Copy link
Member

Hey @huevosabio, thanks for taking the time to make this PR, LGTM! Will try to release this later today.

@Pringled Pringled merged commit ad08c8e into MinishLab:main Aug 21, 2025
@Pringled
Copy link
Member

@huevosabio this is now released; if you use the latest version (https://crates.io/crates/model2vec-rs/0.1.3), you can use the fancy-regex feature when configuring your dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants