Skip to content

fix: include enabled features in memory code key - #36

Merged
VikramLex merged 1 commit into
Graphicle-AI:mainfrom
dajiaohuang:w5/build-code-features-20261112
Nov 13, 2026
Merged

VikramLex merged 1 commit into
Graphicle-AI:mainfrom
dajiaohuang:w5/build-code-features-20261112

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

graphicle-memory exposes build_code() as a key for data derived from the crate. Supported Cargo feature profiles change parser behavior, but the previous key hashed only source files and package version, so no-default and default-feature builds returned the same key.

Include the sorted enabled CARGO_FEATURE_* names in the build hash, with separators. This makes feature-dependent derived data keys distinct while keeping the same key stable for the same source, version, and feature set.

Validation: the locked no-default-features and default-feature library builds both passed. Before the change they emitted the same key; after the change they emitted 59c2eaa000398a61 and fd7d6e8852a6b1fb. cargo fmt --check passed.

Signed-off-by: dajiaohuang <mikewushuwen@outlook.com>
@dajiaohuang
dajiaohuang marked this pull request as ready for review November 12, 2026 17:11
@VikramLex
VikramLex merged commit 09dde73 into Graphicle-AI:main Nov 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants