Compile serde_derive to wasm

This commit is contained in:
David Tolnay
2019-10-13 17:49:13 -07:00
parent 845b900fd5
commit 1afae183b0
6 changed files with 59 additions and 18 deletions
+6 -2
View File
@@ -17,8 +17,7 @@ default = []
deserialize_in_place = []
[lib]
name = "serde_derive"
proc-macro = true
crate-type = ["cdylib"]
[dependencies]
proc-macro2 = "1.0"
@@ -30,3 +29,8 @@ serde = { version = "1.0", path = "../serde" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[workspace]
[patch.crates-io]
proc-macro2 = { git = "https://github.com/dtolnay/watt" }