rust-osdev/multiboot2

lib.rs needs #![feature(no_std)]

mtnygard opened this issue · 2 comments

Recent rust nightlies (at least as far back as 2015-11-19) require 'no_std' to be enabled as a feature before it can be used. Lacking that, the #![no_std] line results in a compile error:

/home/vagrant/.multirust/toolchains/nightly-2015-11-19/cargo/git/checkouts/multiboot2-elf64-151908bccf532495/master/src/lib.rs:1:1: 1:11 error: no_std is experimental (see issue #27701)
/home/vagrant/.multirust/toolchains/nightly-2015-11-19/cargo/git/checkouts/multiboot2-elf64-151908bccf532495/master/src/lib.rs:1 #![no_std]
                                                                                                                                 ^~~~~~~~~~
/home/vagrant/.multirust/toolchains/nightly-2015-11-19/cargo/git/checkouts/multiboot2-elf64-151908bccf532495/master/src/lib.rs:1:1: 1:11 help: add #![feature(no_std)] to the crate attributes to enable
error: aborting due to previous error
Could not compile `multiboot2`.

The no_std feature was stabilized in rust-lang/rust#30187. It is already stabilized in the current beta version and will work on 1.6 stable. So it should work fine on current nightlies.

Whoops. You're totally right. Confirmed that it works on current nightly.