diff --git a/src/gio.rs b/src/gio.rs index 114db7e..d8ab9db 100644 --- a/src/gio.rs +++ b/src/gio.rs @@ -69,6 +69,8 @@ pub struct IOStreamAsyncReadWrite> { write: gio::OutputStreamAsyncWrite, } +unsafe impl> Send for IOStreamAsyncReadWrite {} + impl> IOStreamAsyncReadWrite { /// Create a new `gio::IOStream` adapter fn new(stream: T) -> Result, T> { diff --git a/src/lib.rs b/src/lib.rs index 5a52e65..bd0aa91 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,7 +31,7 @@ unused_imports, unused_import_braces )] -#![forbid(unsafe_code)] +#![cfg_attr(not(feature = "gio-runtime"), forbid(unsafe_code))] pub use tungstenite;