-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support non-nightly version of Rust (beta or stable) #8
Comments
It uses one experimental feature, in src/main.rs:
Instead, a subset of const_fn, called min_const_fn, was enabled. So removing the feature flag: --- a/src/main.rs
+++ b/src/main.rs
@@ -13,7 +13,6 @@
// limitations under the License.
#![recursion_limit="300"]
-#![feature(const_fn)]
extern crate sdl2;
extern crate zip; causes this compilation failure:
src/world/biome.rs uses |
Rust 2018 is coming up, timely to target it. Would also simplify the installation steps: https://github.com/Thinkofname/steven/wiki/Compiling-and-or-running documents nightly is required. |
* Remove seemingly unneeded const on MetadataKey<T> new * Change biome temperature/moisture to integer, x100 to remove floating-point so can use within stable 'const fn' * Remove unstable const_fn feature, now using stable const fn: see https://www.reddit.com/r/rust/comments/9msqfn/const_fn_soon_on_stable_rust/ * Test on Rust beta (awaiting 1.31 release for stable) * Update readme for beta Rust support
Steven requires nightly Rust since it uses experimental features. To improve maintainability, would be nice to adapt it to work on either the beta or preferably stable version of Rust.
The text was updated successfully, but these errors were encountered: