A crate which implements a serde Deserializer using the regex crate, so you could deserialize into structs using named regex captures
Find a file
2026-09-04 00:19:38 +03:00
src Initial commit 2026-09-04 00:12:38 +03:00
tests Initial commit 2026-09-04 00:12:38 +03:00
.gitignore remvoe lock from git 2026-09-04 00:15:57 +03:00
Cargo.toml Add license info 2026-09-04 00:15:02 +03:00
LICENSE Add license info 2026-09-04 00:15:02 +03:00
README.md fix link 2026-09-04 00:19:38 +03:00

regex_deserializer

A crate which implements a serde Deserializer using the regex crate, so you could deserialize into structs using named regex captures

Intended usecase is to deserialize a string as a sequence of captures and convert that into a sequence or a struct (with named captures). Another usecase is a boolean indicating whether the pattern matched.

This is quite crude, but works. You can see an example in tests/basic.rs