diff --git a/rust-book/chapter-1/hellow_world/main.rs b/rust-book/chapter-1/hellow_world/main.rs new file mode 100644 index 0000000..1fc5144 --- /dev/null +++ b/rust-book/chapter-1/hellow_world/main.rs @@ -0,0 +1,3 @@ + fn main() { + println!("Hello, world!"); + } diff --git a/rust-book/rust-management.txt b/rust-book/rust-management.txt new file mode 100644 index 0000000..2dfd70e --- /dev/null +++ b/rust-book/rust-management.txt @@ -0,0 +1,58 @@ +Managing rust versions: + +https://doc.rust-lang.org/nightly/edition-guide/rust-2018/rustup-for-managing-rust-versions.html + +rustup set profile default/nightly - to change profiles +https://github.com/rust-lang/rustup + +rustup toolchain list + +rustup toolchain install stable/nightly + +rustup component add rls rust-analysis rust-src + +rustup component list | grep installed + +rust-analysis rust-src rustfmt-preview rls-preview + + +rust-management.sublime-project +``` +{ + "folders": + [ + { + "path": "/Users/dtomlinson/projects-rust" + }, + { + "path": "/Users/dtomlinson/git-repos" + } + ], + "settings": + { + "LSP": + { + "log_debug": true, + "log_payloads": false, + "log_server": true, + "log_stderr": true, + "only_show_lsp_completions": false, + "rls": + { + "enabled": true + } + }, + "cargo_build": + { + "defaults": + { + "toolchain": "nightly" + } + }, + "rust_syntax_checking": false + } +} +``` + +https://www.reddit.com/r/rust/comments/a40www/sublime_text_3_question/ +