Skip to content

Commit

Permalink
Source deps need to be mandatory on non- x86-linux-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkforest committed Aug 20, 2023
1 parent 73e0c3f commit ddfa22b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions precompiled/serde_derive/Cargo.toml
Expand Up @@ -22,11 +22,18 @@ from_source = ["proc-macro2", "quote", "syn"]
[lib]
proc-macro = true

# By feature source compilation
[dependencies]
proc-macro2 = { version = "1", optional = true }
quote = { version = "1", optional = true }
syn = { version = "2.0.28", optional = true }

# Sourc compiling when no precompiled available
[target.'cfg(not(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu")))'.dependencies]
proc-macro2 = "1"
quote = "1"
syn = "2.0.28"

[dev-dependencies]
serde = { version = "1", path = "../../serde" }

Expand Down

0 comments on commit ddfa22b

Please sign in to comment.