Johni0702 / mumble-web-proxy

Mumble to WebSocket+WebRTC proxy for use with mumble-web
70 stars 25 forks source link

error: Edition 2018 is unstable and only available for nightly builds of rustc. #4

Closed streaps closed 5 years ago

streaps commented 5 years ago

another problem with rustc on Ubuntu 18.10

   Compiling mumble-protocol v0.1.0                                                                                          
     Running `rustc --edition=2018 --crate-name build_script_build /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumble-protocol-0.1.0/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="openssl"' --cfg 'feature="webrtc-extensions"' -C metadata=095398d284102528 -C extra-filename=-095398d284102528 --out-dir /root/repos/mumble-web-proxy/target/release/build/mumble-protocol-095398d284102528 -L dependency=/root/repos/mumble-web-proxy/target/release/deps --extern protobuf_codegen_pure=/root/repos/mumble-web-proxy/target/release/deps/libprotobuf_codegen_pure-45ce27c7cdfca6c5.rlib --cap-lints allow`
error: Edition 2018 is unstable and only available for nightly builds of rustc.                                              

error: Could not compile `mumble-protocol`.                                                                                  

Caused by:
  process didn't exit successfully: `rustc --edition=2018 --crate-name build_script_build /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumble-protocol-0.1.0/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="openssl"' --cfg 'feature="webrtc-extensions"' -C metadata=095398d284102528 -C extra-filename=-095398d284102528 --out-dir /root/repos/mumble-web-proxy/target/release/build/mumble-protocol-095398d284102528 -L dependency=/root/repos/mumble-web-proxy/target/release/deps --extern protobuf_codegen_pure=/root/repos/mumble-web-proxy/target/release/deps/libprotobuf_codegen_pure-45ce27c7cdfca6c5.rlib --cap-lints allow` (exit code: 1)
Johni0702 commented 5 years ago

Edition 2018 has migrated to stable with Rust 1.31.0. However I'm using quite a few nightly features (EDIT: actually, only one afaict) in mumble-web-proxy itself (and one in mumble-protocol as well), so you'll need a nightly version anyway. The most convenient way of obtaining one is probably via rustup.

Johni0702 commented 5 years ago

The README now mentions this, as well as the dependency on clang and libnice headers.