Rename SolveCraft to SolidCraft everywhere, with compatibility shims (#389)

* WIP deep rename (not for push)

* WIP2

* WIP3

* WIP4 wxs fix

* rustfmt

* Rename the remaining identifiers in merged crash-report code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjGw4gA5ZvKrU8MQP6sBgT

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bherbruckandClaude Opus 5.5 authored and GitHub committed 2026-10-12 17:17:01 -04:00
1 parent 27415e4dd7
commit 296683229d
464 files changed
+3408 -2956

No files matched your search

+5 -5
View File
@@ -63,9 +63,9 @@ fn positive_extrude_from_xz_goes_plus_y() {
#[test]
fn format_5_xz_design_opens_where_it_was_saved() {
let dir = std::env::temp_dir().join(format!("solvecraft-xz78-{}", std::process::id()));
let dir = std::env::temp_dir().join(format!("solidcraft-xz78-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let path = dir.join("old-xz.solvecraft");
let path = dir.join("old-xz.solidcraft");
let mut s = Session::default();
build(&mut s);
run(&mut s, "file.save_as", json!({"path": path.to_string_lossy()}));
@@ -73,7 +73,7 @@ fn format_5_xz_design_opens_where_it_was_saved() {
// normal −Y), which is what a build before format 6 wrote and evaluated.
let mut v: Value = serde_json::from_str(&std::fs::read_to_string(&path).unwrap()).unwrap();
assert!(v.to_string().contains("\"XZ\""), "the saved design names the XZ plane");
v["format"] = Value::from("solvecraft/5");
v["format"] = Value::from("solidcraft/5");
std::fs::write(&path, v.to_string()).unwrap();
let mut old = Session::default();
@@ -86,10 +86,10 @@ fn format_5_xz_design_opens_where_it_was_saved() {
expect(&bodies(&mut old), &want);
// Saving the migrated design writes the current format and keeps the geometry.
let resaved = dir.join("resaved.solvecraft");
let resaved = dir.join("resaved.solidcraft");
run(&mut old, "file.save_as", json!({"path": resaved.to_string_lossy()}));
let text = std::fs::read_to_string(&resaved).unwrap();
assert!(text.contains(&format!("\"solvecraft/{}\"", solvecraft_doc::format::FORMAT)), "resaved at the current format");
assert!(text.contains(&format!("\"solidcraft/{}\"", solidcraft_doc::format::FORMAT)), "resaved at the current format");
let mut again = Session::default();
run(&mut again, "doc.open", json!({"path": resaved.to_string_lossy()}));
expect(&bodies(&mut again), &want);