Skip to content

Releases: marchaos/rsprune

Release list

v0.1.0

Choose a tag to compare

@marchaos marchaos released this 06 Mar 09:37
Fix glob semantics, tsc parity, and parser perf

Glob / tsc parity:
- Use GlobBuilder with literal_separator(true) so * stays within one
  path segment (tsc semantics); ** still crosses directories
- Empty include now walks from project root instead of defaulting to src
- Read compilerOptions.outDir and add it to excludes automatically
- Fix empty include panic in build_walker (walk from root)
- Compile ignore regexes once, share via Arc instead of re-parsing per file
- Fix misleading doc comment on build_glob_set

Parser perf:
- Precompute line byte offsets once per file (compute_line_starts)
- Use binary search (partition_point) for O(log n) line/col lookup
- is_suppressed uses .nth() iterator — no Vec<&str> allocation per call
- Remove now-dead source field from AstCollector

Tests (77 total, up from 72):
- empty_include_walks_from_root / empty_include_respects_exclude
- include_single_star_non_recursive (caught the literal_separator bug)
- outdir_is_excluded_automatically (CLI)
- no_include_walks_from_root (CLI)