| # 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") |
| |
| rustc_binary("bin") { |
| name = "token_manager_factory" |
| edition = "2018" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.auth:fuchsia.auth-rustc", |
| "//sdk/fidl/fuchsia.identity.external:fuchsia.identity.external-rustc", |
| "//src/identity/lib/identity_common", |
| "//src/identity/lib/token_manager", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/syslog/rust:syslog", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:parking_lot", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ |
| "src/auth_provider_supplier.rs", |
| "src/main.rs", |
| "src/token_manager_factory.rs", |
| ] |
| } |
| |
| package("token_manager_factory") { |
| deps = [ ":bin" ] |
| |
| binaries = [ |
| { |
| name = "token_manager_factory" |
| }, |
| ] |
| meta = [ |
| { |
| path = rebase_path("meta/token_manager_factory.cmx") |
| dest = "token_manager_factory.cmx" |
| }, |
| ] |
| } |