blob: d32baae2b63bc38eceb9ae48cc71993344d811b2 [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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("fuchsia-url") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//src/sys/pkg/lib/fuchsia-hash",
"//third_party/rust_crates:percent-encoding",
"//third_party/rust_crates:proptest",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:url",
]
test_deps = [
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:serde_json",
]
sources = [
"src/absolute_component_url.rs",
"src/absolute_package_url.rs",
"src/boot_url.rs",
"src/component_url.rs",
"src/errors.rs",
"src/host.rs",
"src/lib.rs",
"src/package_url.rs",
"src/parse.rs",
"src/pinned_absolute_package_url.rs",
"src/relative_component_url.rs",
"src/relative_package_url.rs",
"src/repository_url.rs",
"src/test.rs",
"src/unpinned_absolute_package_url.rs",
]
}
fuchsia_unittest_package("fuchsia-url-tests") {
deps = [ ":fuchsia-url_test" ]
}
group("tests") {
testonly = true
deps = [ ":fuchsia-url-tests" ]
}