maciejhirsz
logos
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
Run graph export tests in temporary directories The debug export test writes graphs into a fixed directory relative to the working directory. This fails when testing an installed crate with read-only sources, and cleanup is skipped when a snapshot assertion panics. Create a unique temporary directory for each test invocation, inject its absolute path into the fixture, and read both graph formats from there. Let TempDir remove the generated files when the test returns or unwinds. Remove the fixture's hard-coded export path and use the tempfile version already present in the workspace lockfile. Validation: - cargo fmt --all -- --check - cargo test -p logos-codegen --all-targets --features debug - cargo test -p logos-codegen --all-targets --all-features - cargo clippy -p logos-codegen --all-targets --all-features -- -D warnings - Four concurrent export test runs from a read-only working directory, with INSTA_UPDATE unset, passed and left no generated files or temporary export directories.
smoe:fix/codegen-export-tempdir
14 days ago
fix(codegen): substitute subpatterns inside character classes without flag group A subpattern referenced inside a character class, e.g. `#[logos(subpattern start = r"[^(?&ws)(?&punct)]")`, was substituted with its flag-wrapped body: `(?u:...)`. Flag-setting groups are not valid regex syntax inside a class, so the regex parser treated those characters literally: `u` (as well as `?`, `(` and `:`) silently became class members, and a negated class then excluded them. Concretely, a token using such a class failed to lex the letter `u` ā and nothing else (issue #580). Track character-class context while substituting `(?&name)` references: inside a class the bare (flag-free) body is spliced in, outside it the flag-wrapped body is kept as before. The per-subpattern test compile still uses the wrapped form, so existing diagnostics are unchanged. Fixes #580 š¤ Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Golopmoui3:master
1 month ago
Merge pull request #579 from jakobhellermann/upgrade-syn-3 Upgrade logos-codegen to syn 3
master
1 month ago
Update snapshot tests in whole workspace after syn update
jakobhellermann:upgrade-syn-3
1 month ago
Merge origin/master into codex/workspace-layout Signed-off-by: tison <wander4096@gmail.com>
tisonkun:codex/workspace-layout
2 months ago
Merge pull request #582 from toyeshhm/fix-doc-typos Fix Brainfuck example path and forbid_unsafe feature name in docs
master
2 months ago
ci: centralize tarpaulin configuration
tisonkun:codex/workspace-layout
2 months ago
Merge pull request #577 from ChrisJr404/morph-extras-variants Add morph variants that replace or map the lexer extras
master
2 months ago
Latest Branches
CodSpeed Performance Gauge
0%
Run graph export tests in temporary directories
#584
15 days ago
257630f
smoe:fix/codegen-export-tempdir
CodSpeed Performance Gauge
0%
fix(codegen): substitute subpatterns inside character classes without flag group
#581
2 months ago
c5333df
Golopmoui3:master
CodSpeed Performance Gauge
0%
Upgrade logos-codegen to syn 3
#579
2 months ago
5554ce1
jakobhellermann:upgrade-syn-3
Ā© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs