You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use websocket::OwnedMessage;
pub type SinkContent = websocket::client::r#async::Framed<
tokio::net::TcpStream,
websocket::r#async::MessageCodec<OwnedMessage>,
>;
pub type SplitSink = futures::stream::SplitSink<SinkContent>;
when scan defines.rs will error:
thread 'main' panicked at 'SplitSink is not generic', /Users/flt/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/cbindgen-0.9.1/src/bindgen/ir/typedef.rs:158:9
So, i try to ignore this mod
then i add ignore annotation to mod.rs:
pub mod server;
/// cbindgen:ignore
pub mod defines;
but the ignore not work, cbindgen also error:
thread 'main' panicked at 'SplitSink is not generic', /Users/flt/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/cbindgen-0.9.1/src/bindgen/ir/typedef.rs:158:9
The text was updated successfully, but these errors were encountered:
That test-case is using cbindgen 0.9, which hadn't implemented the annotation. If I change the Cargo.toml to use 0.15 for example (latest release) it works just fine.
I have a project like following:
defines.rs
when scan defines.rs will error:
So, i try to ignore this mod
then i add ignore annotation to mod.rs:
but the ignore not work, cbindgen also error:
The text was updated successfully, but these errors were encountered: