Added macro export

This commit is contained in:
Franklin 2023-01-24 18:03:45 -04:00
parent 1736e2d14d
commit 0ac5d17824
2 changed files with 4 additions and 2 deletions

View File

@ -4,11 +4,11 @@ version = "0.1.0"
edition = "2021"
[lib]
proc-macro = true
#proc-macro = true
[dependencies]
syn = "1.0"
quote = "1.0"
#quote = "1.0"
#proc-macro2 = "1.0"
dev-dtos = { git = "https://github.com/franklinblanco/user-svc-dtos-rust.git" }

View File

@ -22,6 +22,8 @@ pub fn authenticated_route(_: TokenStream, mut input: TokenStream) -> TokenStrea
input
}*/
#[allow(unused_macros)]
#[macro_export]
macro_rules! authenticate_route {
() => {
let header_conversion_result: dev_dtos::dtos::user::user_dtos::UserAuthHeader = match serde_json::from_str(match request.headers().get("authentication") {