Compare commits
No commits in common. "5e6044eaf51b4caef420029928ceae143b8ffcd6" and "7b52fc000ded6e24ce322e71c57616d6d803bdd4" have entirely different histories.
5e6044eaf5
...
7b52fc000d
2 changed files with 6 additions and 3 deletions
|
@ -11,6 +11,9 @@ fasteval = "0.2.4"
|
|||
tinyaudio = { version = "0.1", optional = true }
|
||||
|
||||
[features]
|
||||
# default = []
|
||||
# default = ["save"]
|
||||
# default = ["play"]
|
||||
default = ["play", "save"]
|
||||
play = ["dep:tinyaudio"]
|
||||
save = []
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::{fs::read_to_string, ops::Deref, path::Path, str::FromStr};
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "save")] {
|
||||
if #[cfg(save)] {
|
||||
use std::path::PathBuf;
|
||||
}
|
||||
}
|
||||
|
@ -14,10 +14,10 @@ use clap::Parser;
|
|||
pub(super) struct Args {
|
||||
#[arg(short, long, value_parser = Instrument::from_str)]
|
||||
instrument: Option<Instrument>,
|
||||
#[cfg(feature = "save")]
|
||||
#[cfg(save)]
|
||||
#[arg(short, long)]
|
||||
output: Option<PathBuf>,
|
||||
#[cfg(feature = "play")]
|
||||
#[cfg(play)]
|
||||
#[arg(short, long)]
|
||||
silent: bool,
|
||||
score: Score,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue