rustup doc --book
doesn't seem to do anything- error: 'rustfmt' is not installed for the toolchain 'stable-x86_64-apple-darwin'
- To install, run
rustup component add rustfmt --toolchain stable-x86_64-apple-darwin
- error: toolchain 'stable-x86_64-apple-darwin' does not contain component 'rustfmt' for target 'x86_64-apple-darwin'
- rust-lang/rustup#1558
- To install, run
cargo new hello_cargo
createssrc/lib.rs
, notmain.rs
- this default seems to no longer be the case on current version of rustup/rustc?
cargo check
doesn't exist?- w0rp/ale vim plugin seems to integrate with it fine though?
- Maybe a missing
extern crate rand;
?- Later referenced in https://doc.rust-lang.org/stable/book/ch19-06-macros.html#how-to-write-a-custom-derive-macro, when is this syntax necessary vs
use
?
- Later referenced in https://doc.rust-lang.org/stable/book/ch19-06-macros.html#how-to-write-a-custom-derive-macro, when is this syntax necessary vs
cargo doc
- error: cannot document a package where a library and a binary have the same name. Consider renaming one or marking the target as
doc = false
- error: cannot document a package where a library and a binary have the same name. Consider renaming one or marking the target as
- rand version 0.5.5 at https://doc.rust-lang.org/stable/book/ch07-02-modules-and-use-to-control-scope-and-privacy.html#using-external-packages
- copy/show hidden lines buttons wrapping code in extraneous
#![allow(unused_variables)]
fn main() {
}
for src/lib.rs
files
- https://doc.rust-lang.org/book/ch11-03-test-organization.html
- https://doc.rust-lang.org/stable/book/ch15-05-interior-mutability.html#a-use-case-for-interior-mutability-mock-objects
- https://doc.rust-lang.org/stable/book/ch17-02-trait-objects.html
- https://doc.rust-lang.org/stable/book/ch17-03-oo-design-patterns.html#defining-post-and-creating-a-new-instance-in-the-draft-state
- Refs rust-lang/mdBook#222
- cons list examples are a little confusing
- display figure annotations on code snippets?
- Good example at https://doc.rust-lang.org/stable/book/ch20-01-single-threaded.html#listening-to-the-tcp-connection
- with anchor links???