New shared `maestro-names` crate producing `adjective-instrument` session handles drawn from the orchestra pit — musical tempo/dynamics/articulation markings × instruments and forms (e.g. `allegro-cello`, `crescendo-oboe`, `staccato-viola`), tying handles to the app's conductor metaphor. - Pure generation takes an injected RNG; no thread_rng/clock in pure paths, so seeded tests are reproducible (repo invariant). - `generate_unique` prefers the bare name, appending an incrementing numeric suffix (`-2`, `-3`, …) only on collision via an injected `is_taken`. - `generate_thread` is the one impure convenience wrapper for runtime callers. - Wordlists are public so the web UI can mirror them for instant reroll; the Rust generator stays the source of truth. Closes #23. Part of #21 (spawn dialog rework). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
382 B
TOML
15 lines
382 B
TOML
[package]
|
||
name = "maestro-names"
|
||
version.workspace = true
|
||
edition.workspace = true
|
||
license.workspace = true
|
||
repository.workspace = true
|
||
publish.workspace = true
|
||
description = "Orchestra-flavoured session-handle generator (adjective × instrument) shared across Maestro"
|
||
|
||
[dependencies]
|
||
rand.workspace = true
|
||
|
||
[dev-dependencies]
|
||
rand = { workspace = true, features = ["small_rng"] }
|