diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9b3e44..bd66081 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Run tests - run: cargo test --verbose --all-features + run: cargo test --all-targets --verbose --all-features + - name: Run no features + run: cargo test --all-targets --verbose --no-default-features deny: runs-on: ubuntu-24.04 diff --git a/midi2/src/lib.rs b/midi2/src/lib.rs index c3204f6..795c93c 100644 --- a/midi2/src/lib.rs +++ b/midi2/src/lib.rs @@ -27,16 +27,73 @@ pub mod utility; pub mod buffer; pub mod error; -mod detail; +#[cfg(any( + feature = "channel-voice1", + feature = "channel-voice2", + feature = "ci", + feature = "flex-data", + feature = "sysex7", + feature = "sysex8", + feature = "system-common", + feature = "ump-stream", + feature = "utility" +))] mod message; +#[cfg(any( + feature = "channel-voice1", + feature = "channel-voice2", + feature = "ci", + feature = "flex-data", + feature = "sysex7", + feature = "sysex8", + feature = "system-common", + feature = "ump-stream", + feature = "utility" +))] mod packet; +#[cfg(any( + feature = "channel-voice1", + feature = "channel-voice2", + feature = "ci", + feature = "flex-data", + feature = "sysex7", + feature = "sysex8", + feature = "system-common", + feature = "ump-stream", + feature = "utility" +))] mod packets; + +mod detail; mod traits; pub use ux; +#[cfg(any( + feature = "channel-voice1", + feature = "channel-voice2", + feature = "ci", + feature = "flex-data", + feature = "sysex7", + feature = "sysex8", + feature = "system-common", + feature = "ump-stream", + feature = "utility" +))] pub use message::*; +#[cfg(any( + feature = "channel-voice1", + feature = "channel-voice2", + feature = "ci", + feature = "flex-data", + feature = "sysex7", + feature = "sysex8", + feature = "system-common", + feature = "ump-stream", + feature = "utility" +))] pub use packets::*; + pub use traits::*; pub mod num {