-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrust.cheat
50 lines (34 loc) · 1005 Bytes
/
rust.cheat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% rust
; rust 语言相关
# Show all rustc supported triplet target
rustc --print target-list
# Test with stdout visiable
cargo test -- --nocapture
# Test ignored or hide items
cargo test -- --ignored
# Switch rust toolchain to nightly
rustup override set nightly
# Add triplet target
rustup target add <target>
$ target: rustc --print target-list
# Install toolchain
rustup toolchain install <toolchain>
# Uninstall an rust toolchain
rustup toolchain uninstall <local-toolchain>
$ local-toolchain: rustup toolchain list
# Display tree visualization of a dependency graph
cargo tree -i <crate>
# Read objectfile information
rust-readobj -h <object>
# 反汇编指定段 awsd 213
rust-objdump --section=<section> --source <object>
# 读取符号表(若有)
rust-objdump --syms <object>
# 查看项目的全部文档
cargo doc --document-private-items --open
# 展开主函数
cargo expand main
# 列印会推送的文件
cargo package --list
# Open local std document
rustup doc --std