BurntSushi/fst

Version of regex_automata

claudius108 opened this issue · 2 comments

Hi!

I am using the FST crate compiled to WASM, and I would like to lower the size of the wasm file (now it is around 600kB).

For the latest version of the regex_automata crate I saw that one can remove some UNICODE features, in order to decrease the size of the resulting binary, by using only the needed features of the crate.
For the fst crate, I am using the version 0.1.10 of regex-automata, with features "transducer", "regex-syntax". It look like this crate does not allow removing of not needed UNICODE features.

My question is: what is the newest version of regex-automata I could use, in order for me to check if I could decrease the size by removing some not needed UNICODE features?

fst hasn't been updated to work with newer versions of regex-automata. I'll eventually do it, but I don't know when or the details of how it will work. If this is a hard requirement for you, you should be able to implement the fst::Automaton trait for the DFAs in regex-automata via a newtype wrapper. You can see my WIP attempt at doing this for the aho-corasick crate, which has a similar API as regex-automata (which is no accident).

Thank you!