rules_rust icon indicating copy to clipboard operation
rules_rust copied to clipboard

Update cxxbridge-cmd example.

Open sayrer opened this issue 1 month ago • 1 comments

This is just a start. I am not sure how the lockfiles in examples/using_cxx were generated. This does work for me, but I don't have all the lockfiles that the examples do.

sayrer avatar Nov 27 '25 00:11 sayrer

I also had to call the rust_cxx_bridge macro this way, so that "cxx.h" would be available.

rust_cxx_bridge(
    name = "bridge",
    src = "src/lib.rs",
    deps = [
        "//3rdparty/crates:cxx_cc",
    ],
)

sayrer avatar Nov 27 '25 00:11 sayrer