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

Does wasapi-rs require nightly? #11

Closed
SecondFlight opened this issue Mar 4, 2022 · 3 comments
Closed

Does wasapi-rs require nightly? #11

SecondFlight opened this issue Mar 4, 2022 · 3 comments

Comments

@SecondFlight
Copy link

SecondFlight commented Mar 4, 2022

I've cloned this repository and run cargo run --exapmle playsine. Doing this gave the following error:

   ...
   Compiling windows v0.33.0
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> C:\Users\qbgee\.cargo\registry\src\github.com-1ecc6299db9ec823\windows-0.33.0\src\lib.rs:5:36
  |
5 | #![cfg_attr(feature = "implement", feature(const_fn_fn_ptr_basics))]
  |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> C:\Users\qbgee\.cargo\registry\src\github.com-1ecc6299db9ec823\windows-0.33.0\src\lib.rs:6:36
  |
6 | #![cfg_attr(feature = "implement", feature(const_fn_trait_bound))]
  |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `windows` due to 2 previous errors

Is wasapi-rs meant to require unstable/nightly, or might this be an error on my side?

I'm using Rust stable v1.59.0.

@HEnquist
Copy link
Owner

HEnquist commented Mar 4, 2022

The latest versions of the windows crate requires nightly if the optional feature for implementing com interfaces is enabled. Since wasapi-rs uses that it means nightly is required here too. They are doing their best to get the things needed stabilized, so expect this to change soon.
See microsoft/windows-rs#1523

@SecondFlight
Copy link
Author

Thanks for the reply and the issue link! I'll add that issue to my watch list.

@HEnquist
Copy link
Owner

#12
With windows-rs 0.34 the stable compiler can be used as soon as rustc 1.61 is released. Nightly is still needed until then.

@HEnquist HEnquist closed this as completed Aug 2, 2022
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

2 participants