blob: 7887182b16e2b1bbe48794e7f08c02d5f565c6de [file] [log] [blame]
# Copyright 2021 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")
rustc_library("lib") {
name = "gcs"
edition = "2021"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-hyper:fuchsia-hyper",
"//src/lib/structured_ui",
"//src/sys/lib/fuchsia_backoff",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-lock",
"//third_party/rust_crates:base64",
"//third_party/rust_crates:cfg-if",
"//third_party/rust_crates:http",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:sha2",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tracing",
"//third_party/rust_crates:url",
]
test_deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:tempfile",
]
sources = [
"src/auth/device.rs",
"src/auth/info.rs",
"src/auth/mod.rs",
"src/auth/pkce.rs",
"src/client.rs",
"src/error.rs",
"src/exponential_backoff.rs",
"src/gs_url.rs",
"src/lib.rs",
"src/mock_https_client.rs",
"src/token_store.rs",
]
}
group("gcs") {
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [
":lib_test($host_toolchain)",
"test:gcs_test_client_bin($host_toolchain)",
]
}