mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-24 18:12:14 +00:00
20 lines
223 B
Rust
20 lines
223 B
Rust
#[cxx::bridge]
|
|
mod here {
|
|
extern "C++" {
|
|
type C;
|
|
}
|
|
|
|
impl UniquePtr<C> {}
|
|
}
|
|
|
|
#[cxx::bridge]
|
|
mod there {
|
|
extern "C++" {
|
|
type C = crate::here::C;
|
|
}
|
|
|
|
impl UniquePtr<C> {}
|
|
}
|
|
|
|
fn main() {}
|