| # Copyright 2026 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. | |
| load("//build/bazel/rules/rust:defs.bzl", "rustc_library") | |
| package(default_applicable_licenses = ["//:license"]) | |
| rustc_library( | |
| name = "fetch-url", | |
| srcs = [ | |
| "src/errors.rs", | |
| "src/lib.rs", | |
| ], | |
| edition = "2024", | |
| target_compatible_with = ["@platforms//os:fuchsia"], | |
| visibility = [ | |
| "//src/sys/pkg/bin/pkgctl:__pkg__", | |
| "//src/sys/pkg/bin/system-updater:__pkg__", | |
| ], | |
| deps = [ | |
| "//sdk/fidl/fuchsia.net.http:fuchsia.net.http_rust", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component", | |
| "//third_party/rust_crates/vendor:anyhow", | |
| "//third_party/rust_crates/vendor:futures", | |
| "//third_party/rust_crates/vendor:log", | |
| "//third_party/rust_crates/vendor:thiserror", | |
| ], | |
| ) |