Compare commits

...

2 commits

Author SHA1 Message Date
8011d8d59a
Add deprecation notice 2025-04-14 19:08:02 +02:00
322179ea13
Run fmt 2025-04-14 19:03:43 +02:00
5 changed files with 11 additions and 5 deletions

View file

@ -6,10 +6,10 @@ resolver = "3"
authors = ["Tristan Druyen <ek36g2vcc@mozmail.com>"] authors = ["Tristan Druyen <ek36g2vcc@mozmail.com>"]
categories = ["web-programming"] categories = ["web-programming"]
description = "Helper macro's for better readability of axum handlers" description = "Helper macro's for better readability of axum handlers"
edition = "2024" edition = "2021"
homepage = "https://git.vlt81.de/vault81/axum-controller" homepage = "https://git.vlt81.de/vault81/axum-controller"
keywords = ["axum", "controller", "macro", "routing"] keywords = ["axum", "controller", "macro", "routing"]
license = "AGPL-3.0-or-later" license = "AGPL-3.0-or-later"
readme = "README.md" readme = "README.md"
repository = "https://git.vlt81.de/vault81/axum-controller" repository = "https://git.vlt81.de/vault81/axum-controller"
version = "0.2.2" version = "0.3.0"

View file

@ -1,5 +1,11 @@
[![Crates.io](https://img.shields.io/crates/v/axum-controller)](https://crates.io/crates/axum-controller) [![Crates.io](https://img.shields.io/crates/v/axum-controller)](https://crates.io/crates/axum-controller)
[![Documentation](https://docs.rs/axum-controller/badge.svg)](https://docs.rs/axum-controller) [![Documentation](https://docs.rs/axum-controller/badge.svg)](https://docs.rs/axum-controller)
![Maintenance](https://img.shields.io/badge/maintenance-deprecated-red.svg)
# DEPRECATED
This crate does not receive further development, it *might* work for your use case.
I've changed how I do routing & recommend checking out [axum-folder-router](https://crates.io/crates/axum-folder-router).
# Axum-Controller # Axum-Controller

View file

@ -2,9 +2,9 @@
use proc_macro::TokenStream; use proc_macro::TokenStream;
use proc_macro2::Ident; use proc_macro2::Ident;
use syn::{ use syn::{
ItemImpl, MetaNameValue,
parse::{Parse, ParseStream}, parse::{Parse, ParseStream},
punctuated::Punctuated, punctuated::Punctuated,
ItemImpl, MetaNameValue,
}; };
#[macro_use] #[macro_use]
extern crate quote; extern crate quote;

View file

@ -17,7 +17,7 @@ axum-typed-routing = { path = "../vendor/axum-typed-routing", version = "0.2.0"}
[dev-dependencies] [dev-dependencies]
axum = "0.8" axum = "0.8"
axum-typed-routing = { path = "../vendor/axum-typed-routing", version = "0.2.0", features = []} axum-typed-routing = { path = "../vendor/axum-typed-routing", version = "0.3", features = []}
axum-test = { version = "17", features = [] } axum-test = { version = "17", features = [] }
json = "0.12" json = "0.12"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }

View file

@ -15,5 +15,5 @@
//! ``` //! ```
pub use axum_controller_macros::controller; pub use axum_controller_macros::controller;
pub use axum_typed_routing::TypedRouter;
pub use axum_typed_routing::route; pub use axum_typed_routing::route;
pub use axum_typed_routing::TypedRouter;