Features are not correct #58

Merged
wojtek merged 1 commits from 57---features-are-not-correct into main 2023-05-06 11:38:51 +02:00
4 changed files with 8 additions and 5 deletions
Showing only changes of commit 701922c3f0 - Show all commits

View File

@ -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

View File

@ -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};

View File

@ -7,6 +7,7 @@ use mockall::automock;
use crate::Artist;
#[cfg(feature = "library-beets")]
pub mod beets;
/// Individual fields that can be queried on.

View File

@ -1 +1,2 @@
#[cfg(feature = "library-beets")]
mod beets;