Github开源生信云平台 DEMO
https://forge.rust-lang.org/infra/other-installation-methods.html
./install.sh --prefix=/ssd1/wy/software/rust-1.93
rustc --version cargo --version
cargo new hello_cargo cargo build cargo run cargo check cargo run --bin server cargo run --bin client cargo run --bin gui
https://github.com/gollmdev/hello-rust
安装的可执行程序(cargo install)
~/.cargo/bin
下载的依赖包(crate 源码)
~/.cargo/registry
Rust 程序设计语言
通过例子学 Rust
rustup update
rustup update stable
rustup default stable
rustup install nightly
rustup override set nightly
rustup show
rustup component add clippy rustfmt
rustup target add x86_64-unknown-linux-gnu
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none rustup install stable # 安装 stable rustup install nightly # 安装 nightly
应用层 UI 框架 ↓ Skia / Impeller / wgpu(抽象层) ↓ Vulkan / Metal / DX12 / OpenGL(图形 API) ↓ 显卡驱动 ↓ GPU 硬件
┌───────────────┐ │ UI 框架 │ └───────┬───────┘ │ ┌───────────────┼───────────────┐ │ │ Skia (2D引擎) wgpu │ │ └───────────────┬───────────────┘ │ Vulkan │ 驱动 │ GPU
这些框架通过绑定系统原生控件,实现 UI 样式原生:
这些框架自己管理渲染管线,适合高性能和自定义 UI: