Skip to content

Commit

Permalink
Separate core workspace from CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCharlton committed Mar 27, 2023
1 parent dbce588 commit 24d2b9b
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 10 deletions.
12 changes: 10 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ license = "MIT"
keywords = ["music"]

[dependencies]
byteorder = "1.4.3"
clap = { version = "4.1.6", features = ["derive"] }
human-panic = { version = "1.1.1", features = ["color"] }
m8-files = "0.1.3"
midi-msg = "0.4.0"
clap = { version = "4.1", features = ["derive"] }
human-panic = { version = "1.1", features = ["color"] }
midi-m8-core = { version = "1.1", path = "./core" }
m8-files = { workspace = true }

[workspace]
members = ["core"]

[workspace.dependencies]
midi-msg = "0.4"
m8-files = "0.1.3"
11 changes: 11 additions & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "midi-m8-core"
version = "1.1.0"
edition = "2021"
repository = "https://github.com/AlexCharlton/midi-m8"
license = "MIT"

[dependencies]
byteorder = "1.4.3"
m8-files = { workspace = true }
midi-msg = { workspace = true }
2 changes: 2 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod midi_file;
pub mod song_to_midi;
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ use std::io::Write;
use clap::Parser;

use m8_files::Song;
mod midi_file;

mod song_to_midi;
use song_to_midi::*;
use midi_m8_core::song_to_midi::*;

#[derive(Parser)]
#[command(version, about)]
Expand Down

0 comments on commit 24d2b9b

Please sign in to comment.