ray-rs-sys 0.0.0

Low-level bindings to the for the C-ABI Ray CoreWorker (shared library) harness
Documentation
package(default_visibility = ["//visibility:public"])

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

rust_library(
    name = "ray_rs_sys",
    srcs = glob(["src/**/*.rs"]),
    crate_features = ["bazel"],
    data = ["//:ray_rs_sys_bindgen.rs"],
    deps = ["//:core_worker_library_c_so"],
    rustc_env = {
        "BAZEL_BINDGEN_SOURCE": "$(execpath //:ray_rs_sys_bindgen.rs)",
    },
)

rust_test(
    name = "test",
    crate = ":ray_rs_sys",
    crate_features = ["bazel"],
    data = [
        "//:ray_rs_sys_bindgen.rs",
        "//:libcore_worker_library_c.so",
    ],
    rustc_env = {
        "BAZEL_BINDGEN_SOURCE": "$(execpath //:ray_rs_sys_bindgen.rs)",
    },
    env = {
        "RUST_TEST_NOCAPTURE": "1",
    }
)