diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-07-28 11:07:54 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-29 00:22:39 -0400 |
commit | 37a4606d2903c5d562baa4d7bef309ec66aa260a (patch) | |
tree | 99559f795fcd1b840637878f869a9550ba7858b6 /build_extra/rust/BUILD.gn | |
parent | 4d386e9e1c79d557cae6af58e6df85eb470c1e0c (diff) |
Add "features" argument to rust components
Diffstat (limited to 'build_extra/rust/BUILD.gn')
-rw-r--r-- | build_extra/rust/BUILD.gn | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index f5f0b9bb6..9988ea6e7 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -11,7 +11,7 @@ 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\"" ] + features = [ "use_std" ] } rust_component("url") { @@ -91,9 +91,9 @@ rust_component("rand") { ":libc", ":rand_core", ] - cfg = [ - "feature=\"std\"", - "feature=\"alloc\"", + features = [ + "std", + "alloc", ] if (is_mac) { libs = [ "Security.framework" ] |