"""Build file for tmp-rialo-timing."""

load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")

package(default_visibility = ["//visibility:public"])

# Export Cargo.toml for crate_universe
exports_files(["Cargo.toml"])

rust_library(
    name = "tmp-rialo-timing",
    srcs = glob(["src/**/*.rs"]),
    aliases = aliases(),
    crate_features = ["serde"],
    crate_name = "tmp_rialo_timing",
    edition = "2021",
    proc_macro_deps = all_crate_deps(proc_macro = True),
    deps = all_crate_deps(normal = True),
)

rust_test(
    name = "tmp-rialo-timing-test",
    aliases = aliases(),
    crate = ":tmp-rialo-timing",
    crate_features = ["serde"],
    edition = "2021",
    proc_macro_deps = all_crate_deps(
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = all_crate_deps(
        normal = True,
        normal_dev = True,
    ),
)
