Fix features
This commit is contained in:
parent
e31b44d31d
commit
701922c3f0
@ -21,14 +21,15 @@ once_cell = "1.17.1"
|
||||
tempfile = "3.5.0"
|
||||
|
||||
[features]
|
||||
bin = ["structopt"]
|
||||
default = ["database-json", "library-beets"]
|
||||
database-json = ["serde_json"]
|
||||
library-ssh = ["openssh", "tokio"]
|
||||
tui = ["crossterm", "ratatui"]
|
||||
library-beets = []
|
||||
ssh-library = ["openssh", "tokio"]
|
||||
tui = ["structopt", "crossterm", "ratatui"]
|
||||
|
||||
[[bin]]
|
||||
name = "musichoard"
|
||||
required-features = ["bin", "database-json", "library-ssh", "tui"]
|
||||
required-features = ["database-json", "library-beets", "ssh-library", "tui"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
@ -74,7 +74,7 @@ impl BeetsLibraryExecutor for BeetsLibraryProcessExecutor {
|
||||
impl BeetsLibraryExecutorPrivate for BeetsLibraryProcessExecutor {}
|
||||
|
||||
// GRCOV_EXCL_START
|
||||
#[cfg(feature = "library-ssh")]
|
||||
#[cfg(feature = "ssh-library")]
|
||||
pub mod ssh {
|
||||
|
||||
use openssh::{KnownHosts, Session};
|
||||
|
@ -7,6 +7,7 @@ use mockall::automock;
|
||||
|
||||
use crate::Artist;
|
||||
|
||||
#[cfg(feature = "library-beets")]
|
||||
pub mod beets;
|
||||
|
||||
/// Individual fields that can be queried on.
|
||||
|
@ -1 +1,2 @@
|
||||
#[cfg(feature = "library-beets")]
|
||||
mod beets;
|
||||
|
Loading…
Reference in New Issue
Block a user