Features are not correct (#58)

Closes #57

Reviewed-on: https://git.wojciechkozlowski.eu/wojtek/musichoard/pulls/58
This commit is contained in:
Wojciech Kozlowski 2023-05-06 11:38:51 +02:00
parent e31b44d31d
commit c6ed827984
4 changed files with 8 additions and 5 deletions

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;