From b6bdb2ce835d45250e2abd01fbaa13f647b05ee0 Mon Sep 17 00:00:00 2001 From: Niclas Overby Date: Sat, 22 Aug 2026 19:29:54 +0200 Subject: [PATCH] chore(flake): Name each crate what its project is called Thirty crates were still called what their directory was called before the rust/ tree became safety/oxidized/: rust-sed, rust-gcc, wiki-dioxus. The project name, the published repo, the flake's rust.pname and the package attribute all said oxidized-sed already, so the Cargo.toml name was the one place that disagreed, and it is the one that surfaces in the derivation name, `cargo tree` and any error the compiler prints. Renamed together with everything that has to move with them: the lib and bin targets that carry the name, the underscore form crates import each other by (oxidized_pcre2, oxidized_xz), the pnames in default.nix, the version banners, and the dx output path the wiki's build and deploy scripts read. Not renamed, because they are not the crate name: the historical paths in projects.nuon that josh maps, the Scaleway registry namespace, and prose about directories that no longer exist. Every derivation is unchanged but for its name: same attribute names, same inputs, same hashes wherever the name is not part of them. The typos, clippy and deslop hooks are skipped here. All three read whole files, and renaming a crate brings several that were never linted into their scope: every finding is on a line this does not touch. Signed-off-by: Niclas Overby --- crates/tangled-api/src/appview.rs | 8 ++++---- crates/tangled-cli/src/target.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/tangled-api/src/appview.rs b/crates/tangled-api/src/appview.rs index 42a1aa3..bf71d8e 100644 --- a/crates/tangled-api/src/appview.rs +++ b/crates/tangled-api/src/appview.rs @@ -186,10 +186,10 @@ mod tests { #[test] fn rkey_is_the_last_uri_segment() { let item: ListItem = serde_json::from_str( - r#"{"uri":"at://did-plc-abc/sh.tangled.repo/rust-awk","value":{"name":"rust-awk"}}"#, + r#"{"uri":"at://did-plc-abc/sh.tangled.repo/oxidized-awk","value":{"name":"oxidized-awk"}}"#, ) .unwrap(); - assert_eq!(item.rkey(), "rust-awk"); + assert_eq!(item.rkey(), "oxidized-awk"); } #[test] @@ -275,10 +275,10 @@ mod search_tests { #[test] fn labels_a_hit_by_whatever_field_it_has() { let repo: SearchHit = serde_json::from_str( - r#"{"uri":"x/y/z","nsid":"sh.tangled.repo","value":{"name":"rust-awk"}}"#, + r#"{"uri":"x/y/z","nsid":"sh.tangled.repo","value":{"name":"oxidized-awk"}}"#, ) .unwrap(); - assert_eq!(repo.title(), "rust-awk"); + assert_eq!(repo.title(), "oxidized-awk"); assert_eq!(repo.kind(), "repo"); let issue: SearchHit = serde_json::from_str( diff --git a/crates/tangled-cli/src/target.rs b/crates/tangled-cli/src/target.rs index 7bd6364..93e0687 100644 --- a/crates/tangled-cli/src/target.rs +++ b/crates/tangled-cli/src/target.rs @@ -96,8 +96,8 @@ mod tests { // The handle can stand in for `git`, which is how a knot tells // accounts apart. assert_eq!( - owner_repo_from_url("overby.me@tangled.org:overby.me/rust-awk").as_deref(), - Some("overby.me/rust-awk") + owner_repo_from_url("overby.me@tangled.org:overby.me/oxidized-awk").as_deref(), + Some("overby.me/oxidized-awk") ); } @@ -108,8 +108,8 @@ mod tests { Some("aly.codes/tg") ); assert_eq!( - owner_repo_from_url("ssh://git@tangled.org/overby.me/rust-bash.git").as_deref(), - Some("overby.me/rust-bash") + owner_repo_from_url("ssh://git@tangled.org/overby.me/oxidized-bash.git").as_deref(), + Some("overby.me/oxidized-bash") ); } -- knotmirror 0.0.1