Clone the rust source someplace local.
$ git clone https://github.com/rust-lang/rust.git
$ cd rust
Then apply pull request #34686. I did it by hand because I don't know any better.
Edit src/stage0.txt
to the latest nightly to work around issue
#34674.
src/stage0.txt
rustc: beta-2016-07-10
rustc_key: 411fd48b
cargo: nightly-2016-07-05
Since I use homebrew, I put it where brew install rust --HEAD
would put it:
$ ./configure --prefix=/usr/local/Cellar/rust/HEAD --disable-rpath --enable-clang --release-channel=nightly
$ make
Wait forever...
$ make install
Link homebrew rust.
brew link rust
Haven't gotten cargo working yet. Had a few promising leads but still not finding -lssl.