third_party_rust_cxx/tests/ffi/module.rs
David Tolnay 7907966838
Switch to namespace = "quoted::path" in docs and tests
To preserve parity with item-level #[namespace = "..."] which is
currently restricted by rustc to a quoted string.
2020-11-01 09:12:05 -08:00

14 lines
306 B
Rust

// Rustfmt mangles the extern type alias.
// https://github.com/rust-lang/rustfmt/issues/4159
#[rustfmt::skip]
#[cxx::bridge(namespace = "tests")]
pub mod ffi {
extern "C" {
include!("tests/ffi/tests.h");
type C = crate::ffi::C;
fn c_take_unique_ptr(c: UniquePtr<C>);
}
}