Skip to content

Commit

Permalink
Move midi functionality to separate crate
Browse files Browse the repository at this point in the history
  • Loading branch information
PikminGuts92 committed Mar 27, 2024
1 parent 2263335 commit 6e03f81
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/grim/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ gltf = { workspace = true, optional = true }
gltf-json = { workspace = true, optional = true }
grim_gltf = { path = "../grim_gltf", optional = true }
grim_macros = { path = "../grim_macros" }
grim_midi = {path = "../grim_midi", optional = true }
grim_traits = { path = "../grim_traits" }
half = { version = "2.3.1", default-features = false }
image = { version = "0.24.8", default-features = false, features = [ "dxt", "png" ] }
itertools = { workspace = true }
lazy_static = { workspace = true }
log = { workspace = true }
midly = { version = "0.5.3", optional = true }
nalgebra = { version = "0.32.3", optional = true }
nom = "7.1.3"
# pyo3 = { version = "0.17.3", optional = true, features = [ "extension-module" ] }
Expand All @@ -37,7 +37,7 @@ rstest = "0.18.2"
[features]
audio = [ "bitstream-io", "fon", "wav" ]
audio_experimental = []
midi = [ "midly" ]
midi = [ "grim_midi" ]
model = [ "gltf", "gltf-json", "grim_gltf", "nalgebra", "serde" ]
python = [ "pyo3" ]

Expand Down
4 changes: 3 additions & 1 deletion core/grim/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ pub mod ark;
#[cfg(feature = "audio")] pub mod audio;
pub mod dta;
pub mod io;
#[cfg(feature = "midi")] pub mod midi;
#[cfg(feature = "midi")] pub mod midi {
pub use grim_midi::*;
}
#[cfg(feature = "model")] pub mod model;
pub mod scene;
mod system;
Expand Down
14 changes: 14 additions & 0 deletions core/grim_midi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "grim_midi"
version.workspace = true
authors.workspace = true
edition.workspace = true

[dependencies]
midly = { version = "0.5.3" }

[dev-dependencies]
rstest = "0.18.2"

[lints]
workspace = true
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6e03f81

Please sign in to comment.