Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

第二章 快速上手

本章带你从零到运行:创建项目、写出第一个端点、完成 CRUD、验证与调试。

本章小节

小节内容
创建项目与依赖Cargo 项目、依赖配置
Hello World 详解四步端点模式逐行解读
第一个 CRUD API增删改查完整示例
运行、调试与验证cargo run、curl、常见问题

预计时间

约 30-45 分钟完成全部动手练习。

前置要求

  • Rust 1.95+(2021 edition)
  • 基本 async/await 概念
  • 已安装 cargo

下一步

从 创建项目与依赖 开始。