alixinne / glsl-lang

LALR parser for GLSL
https://alixinne.github.io/glsl-lang/glsl_lang/
BSD 3-Clause "New" or "Revised" License
23 stars 4 forks source link

chore(deps): drop dependency on `lexical` #37

Closed AlexTMjugador closed 11 months ago

AlexTMjugador commented 11 months ago

The lexical crate maintenance status has been called into question while being affected by several soundness issues, as explained in RUSTSEC-2023-0055. However, as far as I can see, we don't really need to use lexical in the GLSL preprocessor:

As far as I am aware, these changes are not semver-breaking because the modified VersionError enum was never exposed outside of the lang-pp crate.

I'm also working on a PR to update all the dependencies to their latest versions, including syn, logos and lalrpop, to bring these crates up to the most used dependency versions in the ecosystem and reduce build time and dependency tree size. However, these updates are a bit more involved (I ran into issues like https://github.com/TedDriggs/darling/issues/238 with the lang_util::Token derive macro), so I'll be completing the updates over the next days.