Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Normalize `-` to `_` in resulting Wasm file names (#9644)
Marshall Bowers1f210885914f
diff --git a/crates/extension/src/extension_builder.rs b/crates/extension/src/extension_builder.rsindex af32921b510..21a0b7ece73 100644--- a/crates/extension/src/extension_builder.rs+++ b/crates/extension/src/extension_builder.rs@@ -138,7 +138,11 @@ impl ExtensionBuilder {"target",RUST_TARGET,if options.release { "release" } else { "debug" },- cargo_toml.package.name.as_str(),+ &cargo_toml+ .package+ .name+ // The wasm32-wasi target normalizes `-` in package names to `_` in the resulting `.wasm` file.+ .replace('-', "_"),]);wasm_path.set_extension("wasm");