blob: c87702e544867410354c2c9e40cfadbc5a96bea7 [file] [log] [blame]
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
rustc_library("netstack3-core") {
name = "netstack3_core"
version = "0.1.0"
edition = "2018"
configs -= [ "//build/config:rust_no_features" ]
configs += [ "//build/config:netstack3_only_specialization_feature" ]
deps = [
# TODO(https://github.com/rust-lang-nursery/portability-wg/issues/11): remove this module.
"fakealloc",
# TODO(https://github.com/dtolnay/thiserror/pull/64): remove this module.
"fakestd",
"//garnet/lib/rust/never",
"//src/connectivity/lib/internet-checksum",
"//src/connectivity/lib/net-types",
"//src/connectivity/network/netstack3/core/specialize-ip-macro",
"//src/lib/mundane",
"//src/lib/network/packet",
"//src/lib/zerocopy",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:log",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:rand_xorshift",
"//third_party/rust_crates:thiserror",
]
}
rustc_test("netstack3-core_test") {
version = "0.1.0"
edition = "2018"
name = "netstack3_core_lib_test"
configs -= [ "//build/config:rust_no_features" ]
configs += [ "//build/config:netstack3_only_specialization_feature" ]
deps = [
# TODO(https://github.com/rust-lang-nursery/portability-wg/issues/11): remove this module.
"fakealloc",
"//garnet/lib/rust/never",
"//src/connectivity/lib/internet-checksum",
"//src/connectivity/lib/net-types",
"//src/connectivity/network/netstack3/core/specialize-ip-macro",
"//src/lib/mundane",
"//src/lib/network/packet",
"//src/lib/zerocopy",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:log",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:rand_xorshift",
"//third_party/rust_crates:thiserror",
]
}