百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

rust-cookbook

> 编程语言
开源

https://Rust-lang-nursery.GitHub.io/Rust-cookbook

2.6K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

https://Rust-lang-nursery.GitHub.io/Rust-cookbook

A Rust Cookbook

Read it here.

This Rust Cookbook is a collection of simple Rust examples that demonstrate good practices to accomplish common programming tasks, using the crates of the Rust ecosystem.

These examples are complete, and suitable for copying directly into new cargo projects. They are tested and guaranteed to work.

Read it offline

If you'd like to read it locally:

$ git clone https://github.com/rust-lang-nursery/rust-cookbook
$ cd rust-cookbook
$ cargo install mdbook --vers "0.4.43"
$ mdbook serve --open

The output can also be opened from the book subdirectory in your web browser.

$ xdg-open ./book/index.html # linux
$ start .\book\index.html    # windows
$ open ./book/index.html     # mac

Development

Local Development

For local development and testing, you can use the provided Makefile:

# Show all available commands
make help

# Build the book locally
make build

# Run tests
make test

# Build and test (development workflow)
make dev

# Serve the book locally with live reload
make serve

# Clean build artifacts
make clean

Deployment

As a maintainer, you can deploy the site locally using:

# Deploy to GitHub Pages (requires maintainer permissions)
make deploy

# Or use the script directly
./scripts/deploy.sh

The deployment script will:

  1. Build and test the book
  2. Push the built site to the gh-pages branch
  3. GitHub Pages will automatically serve the updated site

Note: This requires maintainer permissions to push to the gh-pages branch.

Contributing

This project is intended to be easy for new Rust programmers to contribute to, and an easy way to get involved with the Rust community. It needs and welcomes help.

For details see CONTRIBUTING.md on GitHub.

License

Rust Cookbook is licensed under Creative Commons Zero v1.0 Universal License (LICENSE-CC0 or https://creativecommons.org/)

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Rust Cookbook by you, as defined in the CC0-1.0 license, shall be dedicated to the public domain and licensed as above, without any additional terms or conditions.

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Rust

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言