jprochazk / garde

A powerful validation library for Rust
Apache License 2.0
455 stars 27 forks source link

Use `js-sys` regex type on wasm32-unknown-unknown with feature enabled #77

Closed aumetra closed 10 months ago

aumetra commented 11 months ago

This is still missing a workflow to run the tests in CI but they should work

Edit: insta just doesn't work with wasm-bindgen-test, so testing is not really feasible with the current test setup

aumetra commented 11 months ago

Hacked together a small regex test that doesn't use the insta snapshots.
It's not pretty but it runs!

jprochazk commented 11 months ago

i know it's a draft, just threw in some drive-by comments

aumetra commented 11 months ago

So, it's now looking more cleaned up, the regex is cached between invocations, and there is a new CI step