Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdg crate is not supported on Windows #38

Closed
udoprog opened this issue Mar 20, 2019 · 0 comments
Closed

xdg crate is not supported on Windows #38

udoprog opened this issue Mar 20, 2019 · 0 comments

Comments

@udoprog
Copy link

udoprog commented Mar 20, 2019

The xdg crate is not supported on Windows, and currently results in:

   Compiling ncspot v0.1.0 (E:\work\repo\ncspot)
error[E0433]: failed to resolve: could not find `BaseDirectories` in `xdg`
  --> src\playlists.rs:58:29
   |
58 |         let xdg_dirs = xdg::BaseDirectories::with_prefix("ncspot").unwrap();
   |                             ^^^^^^^^^^^^^^^ could not find `BaseDirectories` in `xdg`

error[E0433]: failed to resolve: could not find `BaseDirectories` in `xdg`
  --> src\playlists.rs:85:29
   |
85 |         let xdg_dirs = xdg::BaseDirectories::with_prefix("ncspot").unwrap();
   |                             ^^^^^^^^^^^^^^^ could not find `BaseDirectories` in `xdg`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0433`.
error: Could not compile `ncspot`.

To learn more, run the command again with --verbose.

This is due to this crate level cfg attribute:
https://github.com/whitequark/rust-xdg/blob/master/src/lib.rs#L1

The directories crate is a portable alternative to this crate:
https://docs.rs/directories/1.0.2/directories/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant