Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Rust + Axum template [SIDE QUEST] #2237

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion apps/www/app/templates/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const frameworks = [
"Bun",
"Echo",
"Flask",
"Axum",
] as const;
export type Framework = StrArrayToUnion<typeof frameworks>;
// id -> label
Expand Down Expand Up @@ -48,10 +49,21 @@ export type Template = {
};

export const templates: Record<string, Template> = {
"rust-axum": {
title: "Secure your Rust Axum API",
description: "A Rust API service using Unkey for API key validation with the Axum framwork.",
authors: ["unrenamed"],
repository: "https://github.com/unrenamed/unkey-rust-axum",
image: "/images/templates/rust-axum.png",
readmeUrl:
"https://raw.githubusercontent.com/unrenamed/unkey-rust-axum/refs/heads/main/README.md",
language: "Rust",
framework: "Axum",
},
"cost-ratelimit": {
title: "Cost based Ratelimiting",
description: "Ratelimit your AI application based on estimated cost",
authors: ["unrenamed"],
authors: ["hashsbhat"],
repository: "https://github.com/harshsbhat/ordox",
image: "/images/templates/cost-ratelimit.png",
readmeUrl: "https://raw.githubusercontent.com/harshsbhat/ordox/refs/heads/main/README.md",
Expand Down
Binary file added apps/www/public/images/templates/rust-axum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions oss.gg/7_create_a_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Your turn 👇

» 04-October-2024 by Nazar Poshtarenko [Time-Sensitive API Keys for Digital Content Access](https://github.com/unrenamed/unkey-pdf-view.git)

» 06-October-2024 by Nazar Poshtarenko [Protect your Rust + Axum API with Unkey](https://github.com/unrenamed/unkey-rust-axum.git)
» 06-October-2024 by Harsh Bhat [Cost Based ratelimiting](https://github.com/harshsbhat/ordox) [Live](https://ordox.vercel.app/)

---
Loading