Repository navigation
App name: the six names written once, read by one crate - #1904
Open
vmillet-dev wants to merge 1 commit into
Open
vmillet-dev wants to merge 1 commit into
vmillet-dev wants to merge 1 commit into
Conversation
The root Cargo.toml gets [workspace.metadata], beside the version: the
display name, the author's handle, the slug, the identifier, the export
extension and the site. crates/brand is their one reader: its build.rs
refuses a value that could not name a file, a folder, a key or a URL,
and hands them to brand::NAME, AUTHOR_HANDLE, SLUG, IDENTIFIER,
EXTENSION and SITE. engine::app_info and i18n's {{app}} read it instead
of the engine's [package.metadata.devnotes], which goes.
Decision D36: every name follows these values, save a few Cargo and the
files keep literal; renaming is the owner's choice, its cost accepted
and not migrated. D16 names the identifier; the overview says what a
rename costs; CLAUDE.md's rule on layout.rs follows the decision. The
DEVNOTES_ variables keep their prefix for now, the owner's choice.
Part of #1896 (step 1, 10, 11)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
This branch has not been deployed
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.
Part of #1896: steps 1, 10 and 11. The last pull request of the ticket closes it.
The values. The root
Cargo.tomlgets[workspace.metadata], beside the version (D27). Today's values, unchanged:display-nameDevNotesauthor-handle@vmillet-devslugdevnotesidentifiercom.devnotes.appfile-extensiondevnotessitehttps://devnotes.frThe reader,
crates/brand. It is a leaf crate with no dependency; itsbuild.rsis the only reader of the root manifest. It refuses a value that could not name what it names, and the build stops:httpsor ends with/;@.It exports
brand::NAME,AUTHOR_HANDLE,SLUG,IDENTIFIER,EXTENSIONandSITE. In this step,engine::app_infoand i18n's{{app}}read it. The engine's[package.metadata.devnotes]and the manifest-reading code of both build scripts go. The engine'sbuild.rskeeps the author and the pinned toolchain, under neutral variable names (ENGINE_*).Decision D36 « Names », written first as the ticket asks:
The new section « The application's names » in the wiki's overview has the table of values, the reader, and what a rename costs (step 11), plus what the owner sees to outside the repository (step 12). D16 now names « the⚠️ says never to type a name. The i18n page's
identifierof D36 ».CLAUDE.md's rule onlayout.rs(« never rename ») follows the decision, and a new{{app}}paragraph and the overview'sapp_info.rsrow follow too.Owner's decision recorded: the
DEVNOTES_prefix of the environment variables stays as it is for now (step 5's neutral prefix is dropped).Next steps, each a pull request stacked on this one:
Checks run (Linux)
cargo check --workspace,cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo fmt --all --check.cargo test -p i18n -p brand(43 pass), the engine'sapp_infotests, and the ui's about tests (10 pass).node --test "scripts/*.test.mjs"(77 pass);scripts/version.mjsstill reads1.3.0.Generated by Claude Code