Hi Maria,

servo/media requires the same Rust toolchain as Servo [1]. Servo's build
takes care of setting up the toolchain for you, but unfortunately
servo/media does not do that yet. So you need to install and set it up
manually. You can use rustup [2][3] for that (i.e. rustup install
nightly-2019-03-26 && rustup default nightly-2019-03-26).

Cheers,

/ Fernando

[1] https://github.com/servo/servo/blob/master/rust-toolchain
[2] https://rustup.rs/
[3] https://github.com/rust-lang/rustup.rs#working-with-nightly-rust

On Tue, Apr 2, 2019 at 3:41 AM Maria Sable <masa...@ncsu.edu> wrote:

> Hi all,
>
> I am running on Windows and I am able to get the servo project to build
> successfully with no errors (I installed all the dependencies such as
> gstreamer, etc.). However, I am having trouble getting servo/media to build
> when I clone it, cd into it, and run "cargo build". This is the error I am
> getting:
>
> error[E0554]: #![feature] may not be used on the stable release channel
> --> backends\gstreamer\src\lib.rs:1:1
> |
> 1 | #![feature(nll)]
> | ^^^^^^^^^^^^^^^^
> error: aborting due to previous error
> For more information about this error, try `rustc --explain E0554`.
> error: Could not compile `servo-media-gstreamer`.
> warning: build failed, waiting for other jobs to finish...
> error: build failed
>
> I tried running the suggested explain command and this was the output:
>
> Feature attributes are only allowed on the nightly release channel. Stable
> or beta compilers will not comply.
> Example of erroneous code (on a stable compiler):
> ``` #![feature(non_ascii_idents)] // error: #![feature] may not be used on
> the // stable release channel ```
> If you need the feature, make sure to use a nightly release of the compiler
> (but be warned that the feature may be removed or altered in the future).
>
> I have not modified the code at all and the servo/media README does not
> list any additional required dependencies for Windows. Any help would be
> appreciated. Thank you.
>
> Kind regards,
> Maria Sable
> _______________________________________________
> dev-servo mailing list
> dev-servo@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-servo
>
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to