We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12bb592 commit a007aa6Copy full SHA for a007aa6
1 file changed
compiler/Cargo.toml
@@ -21,14 +21,18 @@ path = "src/main.rs"
21
name = "tests"
22
path = "tests/main.rs"
23
24
-[dependencies]
25
hashbrown = { version = "0.15", default-features = false }
26
-log = "0.4"
27
-env_logger = "0.11"
+log = "0.4" # Se mantiene aquí para que el código compile siempre
28
lol_alloc = { version = "0.4", optional = true }
29
itoa = "1"
30
ryu = "1"
31
+[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
+env_logger = "0.11"
32
+
33
+[target.'cfg(target_arch = "wasm32")'.dependencies]
34
+log = { version = "0.4", features = ["max_level_off", "release_max_level_off"] }
35
36
[dev-dependencies]
37
serde = { version = "1", features = ["derive"] }
38
serde_json = "1"
0 commit comments