From 846d54cbde6f6314b856d60f80fb80effc6eb546 Mon Sep 17 00:00:00 2001 From: Teakowa <27560638+Teakowa@users.noreply.github.com> Date: Sun, 27 Sep 2026 20:27:23 +0800 Subject: [PATCH] deps: bump workshop-rs to 0.11.0 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- crates/wright-driver/src/session.rs | 1 + crates/wright-driver/tests/source_provider.rs | 7 ++----- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c9d03d3..51936d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2082,9 +2082,9 @@ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" [[package]] name = "workshop-rs" -version = "0.9.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf0bbc9b33b87951f863effc905440833d9efcc116f051a116059f0a08610b9" +checksum = "5fe166275aacba1dedae548df0ccb706bf3bcf6dd92ef89975cb554892b946d9" dependencies = [ "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index 1d43d5e..db54463 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/wrightkit/wright" [workspace.dependencies] # Canonical Workshop core; SemVer-compatible requirement on the crates.io release. -workshop-rs = "0.9.1" +workshop-rs = "0.11.0" libc = "0.2" serde = "1" serde_json = "1" diff --git a/crates/wright-driver/src/session.rs b/crates/wright-driver/src/session.rs index b3f6d92..7e3bdbe 100644 --- a/crates/wright-driver/src/session.rs +++ b/crates/wright-driver/src/session.rs @@ -839,6 +839,7 @@ pub(crate) fn workshop_diag( workshop_rs::WorkshopError::MissingMapping { .. } => { ("missing-mapping".to_string(), Stage::Frontend, None) } + _ => ("workshop-error".to_string(), Stage::Internal, None), }; Diagnostic { code, diff --git a/crates/wright-driver/tests/source_provider.rs b/crates/wright-driver/tests/source_provider.rs index 94764ca..be79a90 100644 --- a/crates/wright-driver/tests/source_provider.rs +++ b/crates/wright-driver/tests/source_provider.rs @@ -333,11 +333,8 @@ fn mapped_provenance( let locale = workshop_rs::catalog::Locale::new("en-US"); let program = workshop_rs::parser::parse_with_context(text, &catalog, &locale, &catalog) .expect("fixture parses"); - let json = workshop_rs::MappedText { - text: text.to_string(), - map: workshop_rs::SourceMap::extract(&program), - } - .to_json(); + let json = + workshop_rs::MappedText::new(text, workshop_rs::SourceMap::extract(&program)).to_json(); let mut artifact: serde_json::Value = serde_json::from_str(&json).expect("mapped JSON"); artifact["files"] = serde_json::json!([{ "path": url::Url::from_file_path(authored).expect("file URI").to_string(),