https://github.com/drowrin/shuttle-cch23
My solutions for the Shuttle.rs Christmas Code Hunt
https://github.com/drowrin/shuttle-cch23
axum cch23 rust shuttle-rs
Last synced: 2 months ago
JSON representation
My solutions for the Shuttle.rs Christmas Code Hunt
- Host: GitHub
- URL: https://github.com/drowrin/shuttle-cch23
- Owner: Drowrin
- License: mit
- Created: 2023-12-07T20:39:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-22T17:58:59.000Z (over 1 year ago)
- Last Synced: 2025-01-19T23:45:03.878Z (4 months ago)
- Topics: axum, cch23, rust, shuttle-rs
- Language: Rust
- Homepage:
- Size: 667 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Christmas Code Hunt 2023
My solutions to the [Shuttle.rs](https://www.shuttle.rs) [Christmas Code Hunt 2023](https://www.shuttle.rs/cch)## Usage
This repo uses [just](https://github.com/casey/just) to run common commands.
You'll need to install the following in order to use the `just` commands:
- [cargo-shuttle](https://github.com/shuttle-hq/shuttle) - the shuttle.rs CLI
- [cargo-watch](https://github.com/watchexec/cargo-watch) - runs commands when files change
- [cch23-validator](https://crates.io/crates/cch23-validator) - official challenge validatorWith everything installed, you can run the following commands:
```sh
# Compile, run, and test endpoints
just test# Watch for file changes and run `just test` as needed
just watch
```### Project Layout
Each challenge day has a separate file in [./src/](./src/).
Each of these files exposes a `get_routes() -> axum::Router` function, including all of the endpoints for that day.
These routes all include their day's path number, as required by Shuttle.rs CCH.
[./src/main.rs](./src/main.rs) uses all of these `get_routes` functions to build the complete `Router`, and has the `#[shuttle_runtime::main]` attribute applied.