help wanted
仓库指标
- 星标
- (4,472 个星标)
- PR 合并指标
- (平均合并 8分钟) (30 天内合并 3 个 PR)
描述
The current error is shown as:
error[cxxbridge]: unsupported signature
┌─ /dev/stdin:1:54
│
1 │ #[cxx::bridge] mod ffi { extern "C++" { type T; fn f(self); }}
│ ^^^^ unsupported signature
Instead it should say what to use instead. &self or &mut self for shared structs and opaque Rust types, self: Pin<&mut Self> for an opaque C++ type, Box<T> or UniquePtr<T> if ownership needs to be transferred depending on opaque Rust or opaque C++ type.