Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a compile_error!() when central crate features clash #110

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions src/v4l2/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{io, path::Path};

use crate::v4l2::vidioc;

#[cfg(feature = "v4l-sys")]
#[cfg(feature = "libv4l")]
mod detail {
use crate::v4l2::vidioc;
use crate::v4l_sys::*;
Expand Down Expand Up @@ -56,7 +56,7 @@ mod detail {
}
}

#[cfg(feature = "v4l2-sys")]
#[cfg(all(feature = "v4l2", not(feature = "libv4l")))]
onkoe marked this conversation as resolved.
Show resolved Hide resolved
mod detail {
use crate::v4l2::vidioc;

Expand Down