Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpxxn/rust_example
https://github.com/lpxxn/rust_example
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lpxxn/rust_example
- Owner: lpxxn
- Created: 2020-02-14T04:16:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T05:31:00.000Z (over 2 years ago)
- Last Synced: 2023-12-13T01:01:16.000Z (11 months ago)
- Language: Rust
- Size: 3.02 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rust_example
https://kaisery.gitbooks.io/trpl-zh-cn/content/ch01-00-getting-started.html
https://rustwiki.org/zh-CN/rust-by-example/scope/borrow/ref.html
https://wiki.jikexueyuan.com/project/rust-primer/
#### Rust开发crates.io换国内中科大
```
tee $HOME/.cargo/config <<-'EOF'
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
EOF```
或者这个```
https://rsproxy.cn/
```## doc
```
rustup doc
rustup docs --book
```### update
```
rustup -V
rustc -V# 更新工具链
rustup update
# 更新 rustup
rustup self update
rustup self upgrade-data
rustup -V
rustc -V
```
###```
rustup toolchain install nightly
```Now Rust nightly is installed, but not activated. To test it out you can run a command from the nightly toolchain like
```
rustup run nightly rustc --version
```
rustc 1.9.0-nightly (02310fd31 2016-03-19)
But more likely you want to use it for a while. To switch to nightly globally, change the default with rustup default nightly:```
rustup default nightlyrustup default stable
```
info: using existing install for 'nightly'
info: default toolchain set to 'nightly'nightly unchanged: rustc 1.9.0-nightly (02310fd31 2016-03-19)
##
https://github.com/sunface/rust-by-practice
mdbook serve -p 3001 zh-CN
mdbook serve
https://github.com/sunface/rust-coursemarco
https://github.com/veykril/tlborm/## vscode
如果"Error: Couldn't start client Rust Language Server
"rust-client.channel": "stable"