Rust

Rust ********RootStack Rust C/C++

Rust

2024-2025 Rust

  • ****: NSA/CISA C/C++ Rust ” + + GC”
  • **Linux **: Linux 6.1 Rust Android Rust
  • **AI/ML **: HuggingFace tokenizersPolarsDataFusion Rust Python PyO3 Python
  • **WebAssembly **: Rust WASM ——wasm-bindgenwasm-pack

Rust C++ **C++ **—— Rust

C C++ C 5


rust/
 rust.md <-- 
 1/ (14) 
 2/ (11) 
 3/ (6) →→TUI 
 4/ (15) Cargo FFI + GitHub 
 5/ (6) C→Rust →

2-3

1[[1/01-Rust01 Rust]]rustup cargo
2[[1/02-02 ]]fn main, println!,
3[[1/03-03 ]]/let mut
4[[1/04-04 ]]if/else loop/while/for
5[[1/05-05 ]]movecloneCopy trait
6[[1/06-06 ]]&T vs &mut T
7[[1/07-07 ]]structimpl
8[[1/08-08 ]]enumOptionmatch
9[[1/09-09 ]]Vec/ HashMap/ HashSet
10[[1/10-10 ]]Result/ Option``? panic
11[[1/11-11 ]]/
12[[1/12-Trait12 Trait ]]trait derive
13[[1/13-13 ]]
14[[1/14-14 ]]mod/ use/ pubcrate

10

2-3

15[[2/01-01 ]]
16[[2/02-02 ]]
17[[2/03-03 ]]
18[[2/04-04 ]]
19[[2/05-Trait05 Trait ]]
20[[2/06-06 ]]
21[[2/07-07 ]]
22[[2/08-08 ]]
23[[2/09-Unsafe-Rust09 Unsafe Rust]]
24[[2/10-10 ]]
25[[2/11-11 ]]

3-5

26[[3/01-GUI01 ]]
27[[3/02-02 ]]
28[[3/03-TUI03 TUI ]]
29[[3/04-04 ]]
30[[3/05-05 ]]

[[4/01-Cargo
[[4/03-
/[[4/05-
/[[4/07-
[[4/09-FFI
[[4/10-no_std
/[[4/11-
[[4/15-GitHub

C → Rust

1[[5/01-CC ]]
2[[5/02-C]]
3[[5/03-C]]
4[[5/04-C]]
5[[5/05-C]]
6[[5/06-]]

C ↔ Rust

CC++Rust
malloc/freenew/deleteBox::new / RAII
_Generic+ trait bound
(vtable)trait object (dyn Trait)
/ errnoResult<T, E> / ?
#include#include + namespacemod / use ()
pthreadstd::threadSend + Sync trait
char*std::string&str / String