9565c19ef0
This is much better than bindgen because it's fully safe. It's much more ergonomic too: - Invoke Rust methods-on-structs just like C++ methods-on-structs - Rust `Result<>` is translated automatically to exceptions See https://cxx.rs/context.html for more.
8 lines
294 B
Bash
Executable File
8 lines
294 B
Bash
Executable File
#!/usr/bin/bash
|
|
# Install build dependencies not in the cosa buildroot already
|
|
set -xeuo pipefail
|
|
if ! command -v cxxbridge; then
|
|
ver=$(cargo metadata --format-version 1 | jq -r '.packages[]|select(.name == "cxx").version')
|
|
cargo install --root=/usr cxxbridge-cmd --version "${ver}"
|
|
fi
|