0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/build_extra/rust/BUILD.gn

64 lines
1.7 KiB
Text

import("rust.gni")
# Dependencies between third party crates is mapped out here manually. This is
# not so difficult and having it be tedious to add dependencies might help us
# avoid dependency hell later on.
# Versioning for third party rust crates is controlled in //gclient_config.py
# TODO(ry) Use Cargo for versioning?
crates = "//third_party/rust_crates"
rust_component("libc") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/libc-0.2.42/src/lib.rs"
cfg = [ "feature=\"use_std\"" ]
}
rust_component("url") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/url-1.7.1/src/lib.rs"
extern = [
":matches",
":idna",
":percent_encoding",
]
}
rust_component("percent_encoding") {
source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/percent-encoding-1.0.1/lib.rs"
}
rust_component("matches") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/matches-0.1.6/lib.rs"
}
rust_component("idna") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/idna-0.1.5/src/lib.rs"
extern = [
":matches",
":unicode_bidi",
":unicode_normalization",
]
}
rust_component("unicode_bidi") {
source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs"
extern = [ ":matches" ]
}
rust_component("unicode_normalization") {
source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/unicode-normalization-0.1.7/src/lib.rs"
}
rust_component("log") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/log-0.4.3/src/lib.rs"
extern = [ ":cfg_if" ]
}
rust_component("cfg_if") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.4/src/lib.rs"
}