blob: 99514d787fcf38ca2afbc7bd0dfca6238d5c7b8c [file]
# 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:rustc_library.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "http_sse",
srcs = [
"src/client.rs",
"src/client_server_tests.rs",
"src/event.rs",
"src/lib.rs",
"src/linealyzer.rs",
"src/server.rs",
"src/source.rs",
],
edition = "2024",
proc_macro_deps = [
"//third_party/rust_crates/vendor:derivative",
],
visibility = [
"//src/sys/pkg/bin/pkg-resolver:__pkg__",
"//src/sys/pkg/lib/fuchsia-pkg-testing:__pkg__",
"//src/sys/pkg/lib/fuchsia-repo:__pkg__",
],
deps = [
"//src/lib/fuchsia-hyper",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:futures",
"//third_party/rust_crates/vendor:http-body-util",
"//third_party/rust_crates/vendor:hyper",
"//third_party/rust_crates/vendor:hyper-util",
"//third_party/rust_crates/vendor:thiserror",
] + select({
"@platforms//os:fuchsia": [
"//sdk/fidl/fuchsia.net.http:fuchsia.net.http_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
],
"//conditions:default": [],
}),
)