blob: 2b35889677c1e115f164f17313aa27c44cf99ba0 [file] [log] [blame]
# Copyright 2018 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/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/rust/rustc_library.gni")
rustc_library("lib") {
name = "cs"
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.inspect.deprecated:fuchsia.inspect.deprecated-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:thiserror",
]
}
rustc_binary("bin") {
name = "cs_bin"
edition = "2018"
deps = [
":lib",
"//sdk/fidl/fuchsia.inspect.deprecated:fuchsia.inspect.deprecated-rustc",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:structopt",
"//third_party/rust_crates:thiserror",
]
}
package("cs") {
deps = [ ":bin" ]
binaries = [
{
name = "cs_bin"
dest = "cs"
shell = true
},
]
meta = [
{
path = rebase_path("meta/cs.cmx")
dest = "cs.cmx"
},
]
}