error[E0433]: failed to resolve: use of undeclared crate or module `pulsectl`
yurivict opened this issue · comments
0.4.1 fails to build:
error[E0433]: failed to resolve: use of undeclared crate or module `pulsectl`
--> src/audio_controllers/pulseaudio.rs:4:5
|
4 | use pulsectl::controllers::{SourceController, AppControl, DeviceControl};
| ^^^^^^^^ use of undeclared crate or module `pulsectl`
error[E0433]: failed to resolve: use of undeclared crate or module `pulsectl`
--> src/audio_controllers/pulseaudio.rs:5:5
|
5 | use pulsectl::controllers::types::DeviceInfo;
| ^^^^^^^^ use of undeclared crate or module `pulsectl`
error[E0432]: unresolved import `mpris_player`
--> src/cli_main.rs:12:5
|
12 | use mpris_player::PlaybackStatus;
| ^^^^^^^^^^^^ use of undeclared crate or module `mpris_player`
error[E0432]: unresolved import `mpris_player`
--> src/utils/mpris_player.rs:4:5
|
4 | use mpris_player::{MprisPlayer, PlaybackStatus, Metadata};
| ^^^^^^^^^^^^ help: a similar path exists: `super::mpris_player`
error[E0432]: unresolved import `mpris_player`
--> src/gui/main_window.rs:17:5
|
17 | use mpris_player::PlaybackStatus;
| ^^^^^^^^^^^^ use of undeclared crate or module `mpris_player`
Some errors have detailed explanations: E0432, E0433.
rust-1.74.1
FreeBSD 14.0
Hello,
There was a conditional compilation rule which allowed to enable the Pulseaudio and MPRIS features only on Linux (cfg(target_os = "linux")
in the Cargo.toml
file). You could have built without these through passing e.g. the --no-default-features -F gui,ffmpeg
flags to cargo
, as described in the README md
I have edited the Cargo.toml
file in the Git tree in order to replace the dependency over Linux with a dependency over BSD, so that you can use ports of libpulse
and leaving MPRIS over DBus enabled on BSD if you have the corresponding ports installed and you wish to: 1ee47d8
Regards,