Skip to content
Snippets Groups Projects
Commit 9afb980d authored by Tage Johansson's avatar Tage Johansson Committed by Richard W.M. Jones
Browse files

rust: Check that compilation works with default features disabled

The Rust crate has some default features, (tokio and log), to enable the
asynchronous API and logging facilities. This patch extends the test
suite to check that the crate compiles even with these features
disabled. The crate did in fact not compile without those features,
so the patch adds a "#[allow(unused)]" attribute to the utils
module to mittigate an error.
parent ee93a453
No related branches found
No related tags found
No related merge requests found
Pipeline #984910205 failed
......@@ -26,6 +26,7 @@ requires @NBDKIT@ floppy --version
requires @NBDKIT@ memory --version
if [ -z "$VG" ]; then
@CARGO@ c --no-default-features
@CARGO@ test -- --nocapture
@CARGO@ run --example connect-command
@NBDKIT@ -U - memory 1M \
......
......@@ -25,6 +25,7 @@ mod bindings;
mod error;
mod handle;
pub mod types;
#[allow(unused)]
mod utils;
#[cfg(feature = "tokio")]
pub use async_bindings::*;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment