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