bertiqwerty / exmex

Math parser and evaluator in Rust, capable of partial differentiation, allows the use of custom operators.
Apache License 2.0
39 stars 6 forks source link

Usage of literal_matcher_from_pattern requires lazy_static #36

Closed terrorfisch closed 2 years ago

terrorfisch commented 2 years ago

Using the macro literal_matcher_from_pattern! requires adding lazy_static to Cargo.toml in the consuming crate.

If I understand this stack overflow answer correctly this can be fixed by exporting lazy_static (maybe with #[doc(hidden)]?) and refer to it via $crate::lazy_static::lazy_static.

bertiqwerty commented 2 years ago

Good catch. Same for regex.