Fix modules missing feature conditions

Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
Serial 2021-06-26 15:06:39 -04:00
parent 4ebf885eaa
commit 1448d8cca9
2 changed files with 36 additions and 8 deletions

View file

@ -1,3 +1,19 @@
mod constants;
pub(crate) mod read;
pub(crate) mod write;
#[cfg(any(feature = "format-opus", feature = "format-vorbis", feature = "format-riff"))]
pub(crate) mod constants;
#[cfg(any(feature = "format-opus", feature = "format-vorbis"))]
mod crc;
#[cfg(any(feature = "format-opus", feature = "format-vorbis"))]
pub(crate) mod ogg_generic;
#[cfg(feature = "format-opus")]
pub(crate) mod opus;
#[cfg(feature = "format-vorbis")]
pub(crate) mod vorbis;
#[cfg(feature = "format-flac")]
pub(crate) mod flac;
#[cfg(feature = "format-riff")]
pub(crate) mod riff;

View file

@ -1,17 +1,29 @@
#[cfg(feature = "format-ape")]
pub(crate) mod ape_tag;
pub(crate) mod id3_tag;
pub(crate) mod mp4_tag;
pub(crate) mod riff_tag;
pub(crate) mod vorbis_tag;
#[cfg(feature = "format-ape")]
pub use ape_tag::ApeTag;
#[cfg(feature = "format-id3")]
pub(crate) mod id3_tag;
#[cfg(feature = "format-id3")]
pub use id3_tag::Id3v2Tag;
#[cfg(feature = "format-mp4")]
pub(crate) mod mp4_tag;
#[cfg(feature = "format-mp4")]
pub use mp4_tag::Mp4Tag;
#[cfg(feature = "format-riff")]
pub(crate) mod riff_tag;
#[cfg(feature = "format-riff")]
pub use riff_tag::RiffTag;
#[cfg(any(
feature = "format-vorbis",
feature = "format-opus",
feature = "format-flac"
))]
pub(crate) mod vorbis_tag;
#[cfg(any(
feature = "format-vorbis",
feature = "format-opus",