Compare commits

..

No commits in common. "5e6044eaf51b4caef420029928ceae143b8ffcd6" and "7b52fc000ded6e24ce322e71c57616d6d803bdd4" have entirely different histories.

2 changed files with 6 additions and 3 deletions

View file

@ -11,6 +11,9 @@ 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 = []

View file

@ -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(feature = "save")] { if #[cfg(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(feature = "save")] #[cfg(save)]
#[arg(short, long)] #[arg(short, long)]
output: Option<PathBuf>, output: Option<PathBuf>,
#[cfg(feature = "play")] #[cfg(play)]
#[arg(short, long)] #[arg(short, long)]
silent: bool, silent: bool,
score: Score, score: Score,