Add an FFI test facility

This allow testing Rust functions (from fish_tests.cpp) which need to
cross the FFI. See the example in smoke.rs.
This commit is contained in:
ridiculousfish
2023-01-15 14:56:04 -08:00
parent 096b254c4a
commit 681a165721
8 changed files with 114 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ set(fish_autocxx_gen_dir "${CMAKE_BINARY_DIR}/fish-autocxx-gen/")
corrosion_import_crate(
MANIFEST_PATH "${CMAKE_SOURCE_DIR}/fish-rust/Cargo.toml"
FEATURES "fish-ffi-tests"
)
# We need the build dir because cxx puts our headers in there.