Compiling error
Trying to compile with the cargo build --release, but getting this error
error: variant StandAlone is private, and cannot be reexported, consider decla ring its enum as pub
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src /parser.rs:5:9
|
5 | pub use self::TokenClass::*;
| ^^^^^^^^^^^^^^^^^^^^
error: variant TEXT is private, and cannot be reexported, consider declaring i ts enum as pub
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src /parser.rs:4:9
|
4 | pub use self::ParserState::*;
| ^^^^^^^^^^^^^^^^^^^^^
error: variant CTAG is private, and cannot be reexported, consider declaring i ts enum as pub
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src /parser.rs:4:9
|
4 | pub use self::ParserState::*;
| ^^^^^^^^^^^^^^^^^^^^^
error: variant TAG is private, and cannot be reexported, consider declaring it s enum as pub
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src /parser.rs:4:9
|
4 | pub use self::ParserState::*;
| ^^^^^^^^^^^^^^^^^^^^^
error: variant WhiteSpace is private, and cannot be reexported, consider decla ring its enum as pub
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src /parser.rs:5:9
|
5 | pub use self::TokenClass::*;
| ^^^^^^^^^^^^^^^^^^^^
error: variant OTAG is private, and cannot be reexported, consider declaring i ts enum as pub
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src /parser.rs:4:9
|
4 | pub use self::ParserState::*;
| ^^^^^^^^^^^^^^^^^^^^^
error: variant Normal is private, and cannot be reexported, consider declaring its enum as pub
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src /parser.rs:5:9
|
5 | pub use self::TokenClass::*;
| ^^^^^^^^^^^^^^^^^^^^
error: variant NewLineWhiteSpace is private, and cannot be reexported, conside r declaring its enum as pub
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src /parser.rs:5:9
|
5 | pub use self::TokenClass::*;
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to 8 previous errors
error: Could not compile mustache.
Caused by:
process didn't exit successfully: rustc --crate-name mustache /home/pi/.cargo /registry/src/github.com-1ecc6299db9ec823/mustache-0.6.3/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=acdadfbcc11e8b91 -C extra-f ilename=-acdadfbcc11e8b91 --out-dir /home/pi/spotifyd-http/target/release/deps - L dependency=/home/pi/spotifyd-http/target/release/deps --extern log=/home/pi/sp otifyd-http/target/release/deps/liblog-295e160fc212e7ab.rlib --extern rustc_seri alize=/home/pi/spotifyd-http/target/release/deps/librustc_serialize-2adfe847bbad 5e30.rlib --cap-lints allow (exit code: 101)
warning: build failed, waiting for other jobs to finish...
looks to be related to https://github.com/rust-lang/rust/issues/42460
I tried updating the .toml to use the current version of nickel.rs, but that then fails with
error: failed to select a version for aho-corasick (required by regex):
all possible versions conflict with previously selected versions of aho-corasick
version 0.5.2 in use by aho-corasick v0.5.2
possible versions to select: 0.5.3
then there were issues with the version of getopts, then there were more...
this reminds me of rpm hell a decade ago )-:
I hacked around on it some more, but possibly because of updated depenancies it eventually errored with
error[E0432]: unresolved import `librespot::spirc::SpircManager`
--> src/main.rs:15:5
|
15 | use librespot::spirc::SpircManager;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SpircManager` in `spirc`
error[E0432]: unresolved import `librespot::main_helper`
--> src/main.rs:16:5
|
16 | use librespot::main_helper;
| ^^^^^^^^^^^^^^^^^^^^^^ no `main_helper` in the root
error[E0432]: unresolved import `librespot::spirc::SpircManager`
--> src/web_server.rs:4:5
|
4 | use librespot::spirc::SpircManager;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SpircManager` in `spirc`
error[E0432]: unresolved import `librespot::util`
--> src/web_server.rs:5:16
|
5 | use librespot::util::SpotifyId;
| ^^^^ Could not find `util` in `librespot`
warning: unused import: `rustc_serialize::json::ToJson`
--> src/web_server.rs:7:5
|
7 | use rustc_serialize::json::ToJson;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
error: aborting due to 4 previous errors
error: Could not compile `spotifyd-http`.
To learn more, run the command again with --verbose.
I think it needs somebody that actually understands rust rather than somebody that just hacks at cargo.toml files...
Hi! I haven't maintained this for a while, as Spotify released an official API for the same use case. I thought I had updated the README to mention it but I must have forgotten. I'm sorry if you wasted a lot of time on this :(
only a few hours (-:
it was quite frustrating, then elating then frustrating playing "whack a mole" with the dependencies (-: