Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CppCXY/cpp_ls
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.0
Choose a base ref
...
head repository: CppCXY/cpp_ls
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.1.1
Choose a head ref
  • 3 commits
  • 11 files changed
  • 1 contributor

Commits on Oct 29, 2026

  1. fix: the cache fingerprint is a constant of the package, not a build …

    …script's hash of the tree
    
    `cargo publish` could not upload `cpp_code_analysis`: its `build.rs` hashed this crate's `src` **and**
    `../cpp_parser/src`, and the archive cargo builds from contains only the crate's own files. The verification build
    panicked on a directory that is not in the `.crate`, so the crate was unpublishable — the user's report.
    
    The build script is gone. `READING_FINGERPRINT` is now a `const` computed from what the package does carry:
    
        fnv1a(cpp_parser::VERSION ‖ this crate's CARGO_PKG_VERSION ‖ FORMAT_VERSION)
    
    `cpp_parser::VERSION` is new — `env!("CARGO_PKG_VERSION")` answers only for the crate it is written in, and the key
    needs the *parser's* version, because a summary written by another grammar is a wrong answer rather than a missing one.
    
    **The cost is written down where the constant is**, not hidden: a grammar edit *between two versions* no longer
    invalidates the cache by itself, and `FORMAT_VERSION` is the lever for that during development — the same lever a
    dependency bump already uses. What the fingerprint still buys is the case that mattered: a released upgrade carries a
    new parser version, and every entry written by the old one becomes unreachable instead of being served as current.
    
    Verified: `cargo package -p cpp_code_analysis` packages 167 files with no `build.rs` in the listing, `cargo publish
    --dry-run -p cpp_parser` still packages and verifies, the analysis suites are green, clippy `-D warnings` is clean.
    CppCXY committed Oct 29, 2026
    Configuration menu
    Copy the full SHA
    ffcb492 View commit details
    Browse the repository at this point in the history
  2. fix upload

    CppCXY committed Oct 29, 2026
    Configuration menu
    Copy the full SHA
    7b74e62 View commit details
    Browse the repository at this point in the history
  3. update version

    CppCXY committed Oct 29, 2026
    Configuration menu
    Copy the full SHA
    45988e3 View commit details
    Browse the repository at this point in the history
Loading