Repository navigation
build: embed the default spec as JSON instead of rkyv - #1
Merged
Merged
Conversation
The stream module uses rkyv unconditionally, so mitex-spec failed to compile with default features off.
rkyv 0.7 has advisories with no 0.7 fix (RUSTSEC-2026-0235). The default spec now loads from default.json through the serde path the typst query already uses, so mitex, mitex-spec-gen and their dependents no longer pull in rkyv. mitex-spec keeps rkyv as an opt-in feature, which mitex-wasm and mitex-cli enable.
tvanderstad
force-pushed
the
travis/json-spec
branch
from
November 15, 2026 06:06
c947163 to
c947051
Compare
tvanderstad
marked this pull request as ready for review
November 15, 2026 06:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge this first; lockbook/lockbook then points its mitex rev at the merged commit.
Crates that depend on
mitexormitex-spec-genno longer pull in rkyv 0.7, which has an advisory with no 0.7 fix (RUSTSEC-2026-0235). The built-in spec is now embedded asdefault.json(newly added to mitex-artifacts) and loaded through the serde path that already reads typst's query output. For example, Lockbook'sCargo.lockloses rkyv and 12 crates only it pulled in.mitex-speckeeps rkyv as an opt-in feature, andmitex-cliandmitex-wasmturn it on, since their APIs exchange rkyv bytes.mitex-specalso failed to build with rkyv off; that is fixed here.The JSON spec loads into the same 1029 commands as
default.rkyv.You're accepting:
mitex-wasmandmitex-cli.