From 6c43d78d56d6a82e79817c7050ac582582d5b7a4 Mon Sep 17 00:00:00 2001 From: unrenamed Date: Sun, 6 Oct 2024 18:24:57 +0300 Subject: [PATCH 1/2] chore: Rust + Axum template --- oss.gg/7_create_a_template.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oss.gg/7_create_a_template.md b/oss.gg/7_create_a_template.md index 7fce1f9975..b5dc15c23d 100644 --- a/oss.gg/7_create_a_template.md +++ b/oss.gg/7_create_a_template.md @@ -31,4 +31,6 @@ 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) + --- From f6a46ff69408205cf0b29be1c3a1369d90ba862b Mon Sep 17 00:00:00 2001 From: chronark Date: Mon, 7 Oct 2024 14:45:08 +0200 Subject: [PATCH 2/2] feat: add template --- apps/www/app/templates/data.ts | 14 +++++++++++++- .../images/templates/{axum.png => rust-axum.png} | Bin 2 files changed, 13 insertions(+), 1 deletion(-) rename apps/www/public/images/templates/{axum.png => rust-axum.png} (100%) diff --git a/apps/www/app/templates/data.ts b/apps/www/app/templates/data.ts index c5fcca3c70..d6150c7760 100644 --- a/apps/www/app/templates/data.ts +++ b/apps/www/app/templates/data.ts @@ -9,6 +9,7 @@ export const frameworks = [ "Bun", "Echo", "Flask", + "Axum", ] as const; export type Framework = StrArrayToUnion; // id -> label @@ -48,10 +49,21 @@ export type Template = { }; export const templates: Record = { + "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", diff --git a/apps/www/public/images/templates/axum.png b/apps/www/public/images/templates/rust-axum.png similarity index 100% rename from apps/www/public/images/templates/axum.png rename to apps/www/public/images/templates/rust-axum.png