Rust Axum 全程代码。
Latest Update: 2025-09-21 - Update to Axum 0.8
GitHub Repo - jeremychone-channel/rust-axum-course
This repository contains the source code for the Rust Axum Full Course, which is available on YouTube.
The code is available under the MIT or Apache license and is free to use.
Full Rust Web App Production Blueprint Course and Repository at https://rust10x.com/web-app
(YouTube video: Episode 01 - Rust Web App - Course to Production Coding)
Important: Refresh this repo. I implemented a fix to cookie.add for AUTH_TOKEN (see details below in the Notes section).
Here is a Per Chapter Fork by @FloWi. Big thanks!
# Terminal 1 - To run the server.
cargo watch -q -c -w src/ -x "run"
# Terminal 2 - To run the tests.
cargo watch -q -c -w examples/ -x "run --example quick_dev"# Terminal 1 - To run the server.
cargo run
# Terminal 2 - To run the tests.
cargo run --example quick_devAUTH_TOKEN cookie, make sure to call cookie.set_path("/");. See commit - Fix AUTH_TOKEN cookie issuetests/quick_dev.rs file has been moved to examples/quick_dev.rs (with the same code) as it is more appropriate and seems to resolve a Windows limitation when running test and run simultaneously.--poll flag for cargo watch (latest 8.4.0) on my Fedora Linux environment for both the server and tests. Things were not updating without it. See #1axum version 0.6.16 or later, as version 0.6.15 had a bug in static routing.This repository can be found on GitHub.
暂无开放 Issues,或尚未同步最近议题。