Skip to content

Commit fba5732

Browse files
committed
fix: main function not found in crate xtask
1 parent 5f892a8 commit fba5732

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xtask/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![cfg(not(target_arch = "wasm32"))]
2-
31
use anyhow::{Context, Result};
42
use clap::{Parser, ValueEnum};
53
use std::env;
@@ -39,6 +37,10 @@ enum Task {
3937
CodeGen,
4038
}
4139

40+
#[cfg(target_family = "wasm")]
41+
fn main() {}
42+
43+
#[cfg(not(target_family = "wasm"))]
4244
fn main() -> Result<()> {
4345
let cli = Cli::parse();
4446

0 commit comments

Comments
 (0)