Skip to content

Commit ddfa22b

Browse files
committed
Source deps need to be mandatory on non- x86-linux-gnu
1 parent 73e0c3f commit ddfa22b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

precompiled/serde_derive/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,18 @@ from_source = ["proc-macro2", "quote", "syn"]
2222
[lib]
2323
proc-macro = true
2424

25+
# By feature source compilation
2526
[dependencies]
2627
proc-macro2 = { version = "1", optional = true }
2728
quote = { version = "1", optional = true }
2829
syn = { version = "2.0.28", optional = true }
2930

31+
# Sourc compiling when no precompiled available
32+
[target.'cfg(not(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu")))'.dependencies]
33+
proc-macro2 = "1"
34+
quote = "1"
35+
syn = "2.0.28"
36+
3037
[dev-dependencies]
3138
serde = { version = "1", path = "../../serde" }
3239

0 commit comments

Comments
 (0)