mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
make tek_plugin optional
This commit is contained in:
parent
c439528cfc
commit
414650da31
4 changed files with 8 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ tek = { path = "./app" }
|
||||||
tek_cli = { path = "./cli" }
|
tek_cli = { path = "./cli" }
|
||||||
tek_jack = { path = "./jack" }
|
tek_jack = { path = "./jack" }
|
||||||
tek_midi = { path = "./midi" }
|
tek_midi = { path = "./midi" }
|
||||||
tek_plugin = { path = "./plugin" }
|
tek_plugin = { path = "./plugin", default-features = false }
|
||||||
tek_sampler = { path = "./sampler" }
|
tek_sampler = { path = "./sampler" }
|
||||||
tek_time = { path = "./time" }
|
tek_time = { path = "./time" }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ tek_jack = { workspace = true }
|
||||||
tek_time = { workspace = true }
|
tek_time = { workspace = true }
|
||||||
tek_midi = { workspace = true }
|
tek_midi = { workspace = true }
|
||||||
tek_sampler = { workspace = true }
|
tek_sampler = { workspace = true }
|
||||||
tek_plugin = { workspace = true }
|
tek_plugin = { workspace = true, optional = true }
|
||||||
|
|
||||||
backtrace = { workspace = true }
|
backtrace = { workspace = true }
|
||||||
clap = { workspace = true, optional = true }
|
clap = { workspace = true, optional = true }
|
||||||
|
|
@ -25,3 +25,4 @@ proptest-derive = { workspace = true }
|
||||||
[features]
|
[features]
|
||||||
default = ["cli"]
|
default = ["cli"]
|
||||||
cli = ["clap"]
|
cli = ["clap"]
|
||||||
|
host = ["tek_plugin"]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
use crate::*;
|
use crate::*;
|
||||||
|
|
||||||
pub trait Device: Send + Sync + std::fmt::Debug {
|
pub trait Device: Send + Sync + std::fmt::Debug {
|
||||||
fn boxed <'a> (self) -> Box<dyn Device + 'a> where Self: Sized + 'a { Box::new(self) }
|
fn boxed <'a> (self) -> Box<dyn Device + 'a> where Self: Sized + 'a { Box::new(self) }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Device for Sampler {}
|
impl Device for Sampler {}
|
||||||
|
|
||||||
|
#[cfg(feature = "host")]
|
||||||
impl Device for Plugin {}
|
impl Device for Plugin {}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ pub use ::tek_time::{self, *};
|
||||||
pub use ::tek_jack::{self, *, jack::*};
|
pub use ::tek_jack::{self, *, jack::*};
|
||||||
pub use ::tek_midi::{self, *, midly::{MidiMessage, num::*, live::*}};
|
pub use ::tek_midi::{self, *, midly::{MidiMessage, num::*, live::*}};
|
||||||
pub use ::tek_sampler::{self, *};
|
pub use ::tek_sampler::{self, *};
|
||||||
pub use ::tek_plugin::{self, *};
|
#[cfg(feature = "host")] pub use ::tek_plugin::{self, *};
|
||||||
pub use ::tengri::dsl::*;
|
pub use ::tengri::dsl::*;
|
||||||
pub use ::tengri::input::*;
|
pub use ::tengri::input::*;
|
||||||
pub use ::tengri::output::*;
|
pub use ::tengri::output::*;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue