This repository was archived by the owner on Nov 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
This repository was archived by the owner on Nov 28, 2020. It is now read-only.
Compile with stable release of rust #3
Copy link
Copy link
Open
Description
Hi, I was trying to create a diwata package for NixOS (and other platforms where the nix package manager is available).
However, in order to get it to build I've had to compile with nightly rustc, which would make it tough to get it accepted into the nixpkgs collection.
Running cargo build --release
Compiling serde v1.0.27
Compiling rustc-serialize v0.3.24
Compiling gcc v0.3.54
Compiling byteorder v1.2.1
Compiling bitflags v1.0.1
Compiling lazy_static v0.2.11
Compiling strsim v0.7.0
Compiling pear v0.0.12
Compiling ordermap v0.2.13
Compiling num-traits v0.2.1
Compiling scopeguard v0.3.3
Compiling matches v0.1.6
Compiling unicode-normalization v0.1.5
Compiling ansi_term v0.11.0
Compiling nodrop v0.1.12
Compiling byte-tools v0.2.0
Compiling state v0.3.3
error[E0554]: #![feature] may not be used on the stable release channel
--> /tmp/nix-build-diwata-0.1.0.drv-0/diwata-0.1.0-vendor/state/src/lib.rs:1:1
|
1 | #![feature(const_fn)]
| ^^^^^^^^^^^^^^^^^^^^^
error[E0554]: #![feature] may not be used on the stable release channel
--> /tmp/nix-build-diwata-0.1.0.drv-0/diwata-0.1.0-vendor/state/src/lib.rs:2:1
|
2 | #![feature(const_unsafe_cell_new)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: #![feature] may not be used on the stable release channel
--> /tmp/nix-build-diwata-0.1.0.drv-0/diwata-0.1.0-vendor/state/src/lib.rs:3:1
|
3 | #![feature(const_atomic_usize_new)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: #![feature] may not be used on the stable release channel
--> /tmp/nix-build-diwata-0.1.0.drv-0/diwata-0.1.0-vendor/state/src/lib.rs:4:1
|
4 | #![feature(const_atomic_bool_new)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 4 previous errors
error: Could not compile `state`.
warning: build failed, waiting for other jobs to finish...
error: build failed
I think I may have had similar problems with other dependencies. Is there any chance of a fix?
Metadata
Metadata
Assignees
Labels
No labels