diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..020a214 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,120 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "engine" +version = "0.1.0" +dependencies = [ + "jack", + "lib", +] + +[[package]] +name = "jack" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f70ca699f44c04a32d419fc9ed699aaea89657fc09014bf3fa238e91d13041b9" +dependencies = [ + "bitflags 2.10.0", + "jack-sys", + "lazy_static", + "libc", + "log", +] + +[[package]] +name = "jack-sys" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6013b7619b95a22b576dfb43296faa4ecbe40abbdb97dfd22ead520775fc86ab" +dependencies = [ + "bitflags 1.3.2", + "lazy_static", + "libc", + "libloading", + "log", + "pkg-config", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "lib" +version = "0.1.0" + +[[package]] +name = "libc" +version = "0.2.177" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "log" +version = "0.4.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "termix" +version = "0.1.0" + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/Cargo.toml b/Cargo.toml index 6a448db..80c9508 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,4 +3,8 @@ name = "termix" version = "0.1.0" edition = "2024" +[workspace] +resolver = "3" +members = ["engine", "lib"] + [dependencies] diff --git a/engine/Cargo.toml b/engine/Cargo.toml new file mode 100644 index 0000000..3e2f71e --- /dev/null +++ b/engine/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "engine" +version = "0.1.0" +edition = "2024" + +[dependencies] +jack = "0.13.3" +lib = { path = "../lib/" } diff --git a/engine/src/main.rs b/engine/src/main.rs new file mode 100644 index 0000000..b024c72 --- /dev/null +++ b/engine/src/main.rs @@ -0,0 +1,5 @@ +use lib; + +fn main() { + println!("Hello, world!"); +} diff --git a/lib/Cargo.toml b/lib/Cargo.toml new file mode 100644 index 0000000..aec3db6 --- /dev/null +++ b/lib/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "lib" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/lib/src/lib.rs b/lib/src/lib.rs new file mode 100644 index 0000000..bada360 --- /dev/null +++ b/lib/src/lib.rs @@ -0,0 +1,2 @@ +mod track; +mod region; diff --git a/lib/src/region.rs b/lib/src/region.rs new file mode 100644 index 0000000..61607e1 --- /dev/null +++ b/lib/src/region.rs @@ -0,0 +1,3 @@ +struct Region { + name: String, +} diff --git a/lib/src/track.rs b/lib/src/track.rs new file mode 100644 index 0000000..a8260c9 --- /dev/null +++ b/lib/src/track.rs @@ -0,0 +1,9 @@ +enum TrackType { + Audio, + Midi, +} + +struct Track { + name: String, + track_type: TrackType, +}