fix wasm-bindgen verify logic
This commit is contained in:
1 file changed
+5
-3
@@ -50,13 +50,15 @@ impl BuildRequest {
|
|||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let our_wasm_bindgen_version = wasm_bindgen_shared::version();
|
||||||
match self.krate.wasm_bindgen_version() {
|
match self.krate.wasm_bindgen_version() {
|
||||||
Some(version) if version == wasm_bindgen_shared::SCHEMA_VERSION => {
|
Some(version) if version == our_wasm_bindgen_version => {
|
||||||
tracing::debug!("wasm-bindgen version {version} is compatible with dioxus-cli ✅");
|
tracing::debug!("wasm-bindgen version {version} is compatible with dioxus-cli ✅");
|
||||||
},
|
},
|
||||||
Some(version) => {
|
Some(version) => {
|
||||||
tracing::warn!(
|
tracing::warn!(
|
||||||
"wasm-bindgen version {version} is not compatible with the cli crate. Attempting to upgrade the target wasm-bindgen crate manually..."
|
"wasm-bindgen version {version} is not compatible with the cli crate ({}). Attempting to upgrade the target wasm-bindgen crate manually...",
|
||||||
|
our_wasm_bindgen_version
|
||||||
);
|
);
|
||||||
|
|
||||||
let output = Command::new("cargo")
|
let output = Command::new("cargo")
|
||||||
@@ -65,7 +67,7 @@ impl BuildRequest {
|
|||||||
"-p",
|
"-p",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
"--precise",
|
"--precise",
|
||||||
&wasm_bindgen_shared::version(),
|
&our_wasm_bindgen_version,
|
||||||
])
|
])
|
||||||
.stderr(Stdio::piped())
|
.stderr(Stdio::piped())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
|
|||||||
Reference in new issue
Block a user