Import scratch crate

This commit is contained in:
David Tolnay 2020-10-07 17:29:37 -07:00
parent 039320287d
commit a8beeef131
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
6 changed files with 24 additions and 0 deletions

1
BUCK
View File

@ -56,6 +56,7 @@ rust_library(
"//third-party:lazy_static",
"//third-party:proc-macro2",
"//third-party:quote",
"//third-party:scratch",
"//third-party:syn",
],
)

1
BUILD
View File

@ -62,6 +62,7 @@ rust_library(
"//third-party:lazy_static",
"//third-party:proc-macro2",
"//third-party:quote",
"//third-party:scratch",
"//third-party:syn",
],
)

View File

@ -16,6 +16,7 @@ codespan-reporting = "0.9"
lazy_static = "1.4"
proc-macro2 = { version = "1.0.17", default-features = false, features = ["span-locations"] }
quote = { version = "1.0", default-features = false }
scratch = "1.0"
syn = { version = "1.0.20", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] }
[dev-dependencies]

7
third-party/BUCK vendored
View File

@ -63,6 +63,13 @@ rust_library(
deps = [":proc-macro2"],
)
rust_library(
name = "scratch",
srcs = glob(["vendor/scratch-1.0.0/src/**"]),
env = {"OUT_DIR": ""},
visibility = ["PUBLIC"],
)
rust_library(
name = "syn",
srcs = glob(["vendor/syn-1.0.42/src/**"]),

7
third-party/BUILD vendored
View File

@ -68,6 +68,13 @@ rust_library(
deps = [":proc-macro2"],
)
rust_library(
name = "scratch",
srcs = glob(["vendor/scratch-1.0.0/src/**"]),
rustc_env = {"OUT_DIR": ""},
visibility = ["//visibility:public"],
)
rust_library(
name = "syn",
srcs = glob(["vendor/syn-1.0.42/src/**"]),

7
third-party/Cargo.lock generated vendored
View File

@ -82,6 +82,7 @@ dependencies = [
"lazy_static",
"proc-macro2",
"quote",
"scratch",
"syn",
]
@ -221,6 +222,12 @@ version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
[[package]]
name = "scratch"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e114536316b51a5aa7a0e59fc49661fd263c5507dd08bd28de052e57626ce69"
[[package]]
name = "serde"
version = "1.0.116"