In Cargo.toml
I have
[features]
minio = []
In a module I have
#[cfg(test)]
mod test {
#[test]
#[cfg(minio)]
fn minio_copy() {
println!("Yay1");
}
Running cargo test --features minio minio_copy
runs no tests.
In Cargo.toml
I have
[features]
minio = []
In a module I have
#[cfg(test)]
mod test {
#[test]
#[cfg(minio)]
fn minio_copy() {
println!("Yay1");
}
Running cargo test --features minio minio_copy
runs no tests.
The correct attribute syntax is #[cfg(feature = "minio")]
.
Ah...
Thanks!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.