-
Notifications
You must be signed in to change notification settings - Fork 106
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
Smaller docs improvements #2745
Conversation
ebfafa3
to
df3d821
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
cc @nhynes who's good at installing rust
|
||
``` | ||
cargo install fortanix-sgx-tools sgxs-tools | ||
rustup target add x86_64-fortanix-unknown-sgx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are the rustup target add
and cargo install
reversed from before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you only need the target for compiling to sgx. the sgx tools are binaries that compile to native. You'd be best off using rustup target add --toolchain nightly-2020-02-16 x86_64-fortanix-unknown-sgx
if you don't set the default toolchain during the initial install.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @nhynes explained, the Fortanix SGX target is not needed for compiling the sgx tools, however, sgx tools are required for compiling to sgx.
I would like to avoid hard-coding a particular nightly version in the README because experience suggests we will forget to update it.
Hence, I tried to use such instructions that never need to specify a nightly version and only rely on the rust-toolchain
file.
|
||
``` | ||
rustup default nightly | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly |
if you're feeling terse. one could even go as far as saying --default-toolchain nightly-2020-02-16 -t x86_64-fortanix-unknown-sgx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestions. I decided to leave it as is as I would prefer not to set the nightly as a default toolchain for all user's projects.
df3d821
to
f473316
Compare
Clarify instructions on setting up Rust and taking advantage of the newly added rust-toolchain file which rustup uses to download and install the correct version of the Rust toolchain automatically.
Currently, Oasis Labs' towncrier fork is unversioned and hence installing it from a git branch will not over-write a previous installation, even though there were new changes on the given branch. For more details, see: oasisprotocol/towncrier#6.
f473316
to
98bad8f
Compare
Mostly a clarification on how to set up Rust and take advantage of the newly added
rust-toolchain
file which rustup uses to download and install the correct version of the Rust toolchain automatically.