mitex-rs / mitex

LaTeX support for Typst, powered by Rust and WASM. https://mitex-rs.github.io/mitex/
https://mitex-rs.github.io/mitex/tools/underleaf.html
Apache License 2.0
287 stars 10 forks source link

dev: remove unsafe code #119

Closed mattfbacon closed 8 months ago

mattfbacon commented 8 months ago

I'd like your opinions on these changes, specifically, was any of this the unsafe code used for performance reasons and are the safe replacements too slow?

mattfbacon commented 8 months ago

Also, do changes to crates/mitex-glob/src/lib.rs need to be propagated to crates/mitex-glob/src/origin?

mattfbacon commented 8 months ago

And regarding origin?

Myriad-Dreamin commented 8 months ago

I make a PR to you for enum_all, https://github.com/mattfbacon/mitex/pull/1.

Myriad-Dreamin commented 8 months ago

And regarding origin?

This file is to track the dirty changes in mitex-glob/src/lib.rs, so we don't need to change it.

mattfbacon commented 8 months ago

Ok, sounds good