RivTian

Results 26 issues of RivTian

good first issue

本机信息: * Win 10 22H2 * Microsoft C++ Build Tools VS2019‘s VC142 * MinGW 8.10 * CMake 3.24.2 * CLion 2023.2.2 在两种编译环境下 VC142 出现编译错误,MinGW正常运行。 ![](https://github.com/liuzengh/design-pattern/assets/62837507/fff844ea-b19f-45f2-87c2-e4e4be83086d) ![](https://github.com/liuzengh/design-pattern/assets/62837507/0f32e1e7-4979-4cc6-bcb7-6492a8d9473b)

Hello Sir,When I tried to clone the repository locally and compile and run it, I was prompted that the libUSB library was missing, resulting in compilation failure. My dev environment...

> [!NOTE] > > `Cargo.toml`又称清单( `manifest` ),是 Rust项目的核心配置文件,采用TOML格式(Tom's Obvious Minimal Language);定义了一个包(crate)的: > > - 名称、版本、作者、许可证; > - 依赖项; > - 编译特性; > - 目标配置; > - 构建脚本; > - 工作区设置等...

Rust
Cargo

> [!NOTE] > 更推荐安装 Rust 的时候便使用 https://rsproxy.cn/ 的教程完成安装 > Rust 的 nightly 工具链是体验最新语言特性(async trait、inline asm、新语法糖)和编译器优化的唯一入口。然而官方服务器位于海外,国内网络常出现「rustup update nightly」卡在 0 B/s、crates.io-index 更新 10 分钟起步的尴尬场景。 rustup 与 Cargo 均支持通过简单的环境变量 / 配置文件指向国内镜像源(清华、中科大、上交等),无需 VPN、无需改系统代理,即可把下载速度从 "$CONF_FILE"

Rust
Cargo

> [!IMPORTANT] > Relate to some **tutorial** > - [Rust Cheats](https://cheats.rs/) > - [Rust Road Map](https://roadmap.sh/rust) > - [Rust 语言圣经](https://course.rs/about-book.html) > - [Recommended Crate Directory](https://blessed.rs/crates) > [!WARNING] > Relate to...

Rust
Tutorial

> [!NOTE] > > Rust的核心工具包括: > > - `rustc`:Rust的底层编译器。`cargo`最终会调用 `rustc` 来编译代码。`rustc` 接受大量的命令行参数来精确控制编译过程。 > - `cargo`:Rust 的官方构建工具和包管理器。根据 `Cargo.toml` 的配置,自动调用 `rustc` 并传递合适的参数。 ## **cargo工具** cargo是 Rust 开发的核心工具,统一了「项目创建、编译、运行、测试、依赖管理、发布」等全流程: - 项目脚手架:创建标准 Rust 项目(二进制 /...

Rust
Cargo

> [!NOTE] > > cargo-deny是由EmbarkStudios开发的一个Rust工具,托管在GitHub上(EmbarkStudios/cargo-deny)。它是一个Cargo插件,旨在帮助开发者管理Rust项目的依赖,确保依赖符合特定的要求和期望。 ## 项目背景 `cargo-deny` 是由 Embark Studios 开发的一个 Rust 工具,托管在 GitHub 上[EmbarkStudios/cargo-deny](https://github.com/EmbarkStudios/cargo-deny)。它是一个 Cargo 插件,旨在帮助开发者管理 Rust 项目的依赖,确保依赖符合特定的要求和期望。Rust 生态以其丰富的 crates(库)而著称,但随着项目规模扩大,依赖管理变得复杂,`cargo-deny` 应运而生,提供了依赖审查和 Lint 功能。 该工具最初是为 Embark Studios 内部使用设计的,后来开源并得到了社区的支持。它特别适合需要关注依赖安全性、许可证合规性或代码质量的开发者,是 Rust...

Rust
Tool
Cargo

### Axum Some References or Resources - zero2prod with Axum -> [fan-tastic-z/zero2prod](https://github.com/fan-tastic-z/zero2prod) - Rust: Axum HTTP 框架的架构分析 -> [知乎](https://zhuanlan.zhihu.com/p/711528388) - Axum架构分析源码阅读笔记 -> [知乎](https://zhuanlan.zhihu.com/p/14233666379) - Axum/Actix Web 配合 utoipa 生成配套后端 Swagger...

Rust
Framework
Web

`Cargo Feature` 是非常强大的机制,可以为大家提供[条件编译](https://doc.rust-lang.org/stable/reference/conditional-compilation.html)和可选依赖的高级特性。 ## [features] `Feature` 可以通过 `Cargo.toml` 中的 `[features]` 部分来定义:其中每个 `feature` 通过列表的方式指定了它所能启用的其他 `feature` 或可选依赖。 假设我们有一个 2D 图像处理库,然后该库所支持的图片格式可以通过以下方式启用: ```toml [features] # 定义一个 feature : webp, 但它并没有启用其它 feature webp = []...

Tool
Cargo