-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Adding new Fuchsia rustup docs... reworking walkthrough #100927
Conversation
r? @JohnTitor (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
r? @tmandry |
494bc4c
to
1100967
Compare
@djkoloski want to do a first pass? |
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.
Looks generally good. Specific things we should improve:
- Make downloading the SDK more obvious if readers are liable to skip to the numbered steps.
- Consider renaming the directories to make them shorter and clearer. I suggest
hello_fuchsia_src
,hello_fuchsia_bin
, andhello_fuchsia_pkg
. - Fix up directory structure trees. Looks like some of the subdirs may not be properly laid out and there are some extra legs dangling down.
Finally, we can build our rust binary as: | ||
|
||
```sh | ||
cargo build --release --target x86_64-fuchsia --manifest-path hello_fuchsia_rust_crate/Cargo.toml |
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.
Is --manifest-path
necessary here? Cargo should search for it based on the cwd.
I also think we should default to a debug build unless there's a compelling reason not to.
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.
For the walkthrough, I've built all commands to be run from the same base directory. Since cargo new
creates the hello_fuchsia_rust_crate/ directory, it can't find the Cargo.toml unless specified
Agreed on debug change!
This comment has been minimized.
This comment has been minimized.
33e75a5
to
0f87a21
Compare
8920f11
to
70ee3df
Compare
70ee3df
to
36026b3
Compare
Stare at the directory artwork for too long, and it will stare right back 😨 Thanks for the feedback @djkoloski & @tmandry !! |
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.
LGTM, one nit that's optional to address
36026b3
to
2a3e3ee
Compare
2a3e3ee
to
5d75a42
Compare
@tmandry This looks good to me |
This comment was marked as outdated.
This comment was marked as outdated.
@bors r- rollup delegate+ |
✌️ @andrewpollack can now approve this pull request |
Co-authored-by: Tyler Mandry <[email protected]>
Co-authored-by: Tyler Mandry <[email protected]>
@bors r=tmandry |
Rollup of 10 pull requests Successful merges: - rust-lang#100804 (Fix search results color on hover for ayu theme) - rust-lang#100892 (Add `AsFd` implementations for stdio types on WASI.) - rust-lang#100927 (Adding new Fuchsia rustup docs... reworking walkthrough) - rust-lang#101088 (Set DebuginfoKind::Pdb in msvc_base) - rust-lang#101159 (add tracking issue number to const_slice_split_at_not_mut) - rust-lang#101192 (Remove path string) - rust-lang#101193 (Avoid zeroing large stack buffers in stdio on Windows) - rust-lang#101197 (:arrow_up: rust-analyzer) - rust-lang#101200 (Add test for issue rust-lang#85872) - rust-lang#101219 (Update books) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
… r=tmandry Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during rust-lang#100927
… r=tmandry Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during rust-lang#100927
… r=tmandry Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during rust-lang#100927
… r=tmandry Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during rust-lang#100927
… r=tmandry Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during rust-lang#100927
… r=tmandry Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during rust-lang#100927
… r=tmandry Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during rust-lang#100927
Docs improvements:
rustup
target add for Fuchsia targetshello_fuchsia_pkg/
directorycc. @djkoloski