danielpclark / faster_path

Faster Pathname handling for Ruby written in Rust
MIT License
782 stars 33 forks source link

OS X install failed #144

Closed trooster closed 6 years ago

trooster commented 6 years ago

Compiling/installing the faster_path gem on os x failed:

`error[E0554]: #![feature] may not be used on the stable release channel --> src/lib.rs:7:1 | 7 | #![feature(try_from)] | ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: Could not compile faster_path. `

I also tried installing the beta version of rust via: curl https://sh.rustup.rs -sSf | sh

But that gave the same error

danielpclark commented 6 years ago

It requires Rust nightly. Did you manually try to install it or was it part of the install process built in with Thermite?

If you build it manually you can use the rake command. This is the scenario where you download from Github directly. If you're installing this gem as a dependency then the binary should be handled through Thermite — both the download option and the compilation.

For Rust nightly you can do:

curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
danielpclark commented 6 years ago

I'm importing the trait TryFrom locally now so you won't need nightly Rust.

New version of gem 0.3.2 now uses Rust stable.