Skip to content

Commit

Permalink
third_party: add rust crate 'serde_derive'
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed May 17, 2019
1 parent e9c9d71 commit 3ff240b
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

95 changes: 95 additions & 0 deletions build_extra/rust/BUILD.gn
Expand Up @@ -747,6 +747,42 @@ rust_rlib("percent_encoding") {
]
}

rust_rlib("proc_macro2") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.30/src/lib.rs"
features = [
"default",
"proc-macro",
]
extern_rlib = [ "unicode_xid" ]
args = [
"--cap-lints",
"allow",
]

# Added by custom-build script.
cfg = [
"u128",
"use_proc_macro",
"wrap_proc_macro",
]
}

rust_rlib("quote") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/quote-0.6.12/src/lib.rs"
features = [
"default",
"proc-macro",
"proc-macro2",
]
extern_rlib = [ "proc_macro2" ]
args = [
"--cap-lints",
"allow",
]
}

rust_rlib("rand") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/lib.rs"
Expand Down Expand Up @@ -1221,6 +1257,21 @@ rust_rlib("serde") {
]
}

rust_proc_macro("serde_derive") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.91/src/lib.rs"
features = [ "default" ]
extern_rlib = [
"proc_macro2",
"quote",
"syn",
]
args = [
"--cap-lints",
"allow",
]
}

rust_rlib("serde_json") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.39/src/lib.rs"
Expand Down Expand Up @@ -1324,6 +1375,40 @@ rust_rlib("strsim") {
]
}

rust_rlib("syn") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/syn-0.15.34/src/lib.rs"
features = [
"clone-impls",
"default",
"derive",
"extra-traits",
"parsing",
"printing",
"proc-macro",
"proc-macro2",
"quote",
"visit",
]
extern_rlib = [
"proc_macro2",
"quote",
"unicode_xid",
]
args = [
"--cap-lints",
"allow",
]

# Added by custom-build script.
cfg = [
"syn_can_call_macro_by_path",
"syn_can_use_associated_constants",
"syn_can_use_thread_id",
"syn_disable_nightly_tests",
]
}

rust_rlib("tempfile") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tempfile-3.0.7/src/lib.rs"
Expand Down Expand Up @@ -1745,6 +1830,16 @@ rust_rlib("unicode_width") {
]
}

rust_rlib("unicode_xid") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.1.0/src/lib.rs"
features = [ "default" ]
args = [
"--cap-lints",
"allow",
]
}

rust_rlib("untrusted") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/untrusted-0.6.2/src/untrusted.rs"
Expand Down
6 changes: 6 additions & 0 deletions cli/BUILD.gn
Expand Up @@ -13,6 +13,11 @@ main_extern = [
crate_name = "deno"
crate_type = "rlib"
},
{
label = "$rust_build:serde_derive"
crate_name = "serde_derive"
crate_type = "proc_macro"
},
]
main_extern_rlib = [
"ansi_term",
Expand All @@ -32,6 +37,7 @@ main_extern_rlib = [
"remove_dir_all",
"ring",
"rustyline",
"serde",
"serde_json",
"source_map_mappings",
"tempfile",
Expand Down
2 changes: 2 additions & 0 deletions cli/Cargo.toml
Expand Up @@ -36,6 +36,8 @@ regex = "1.1.6"
remove_dir_all = "0.5.1"
ring = "0.14.6"
rustyline = "4.0.0"
serde = "1.0.91"
serde_derive = "1.0.91"
serde_json = "1.0.39"
source-map-mappings = "0.5.0"
tempfile = "3.0.7"
Expand Down
2 changes: 1 addition & 1 deletion third_party
Submodule third_party updated 111 files

0 comments on commit 3ff240b

Please sign in to comment.