ProbablyClem / utoipauto

Rust Macros to automate the addition of Paths/Schemas to Utoipa crate, simulating Reflection during the compilation phase
Apache License 2.0
128 stars 11 forks source link

Issue with rust macro utoipauto. Panic on simple structure #46

Closed CR7273868 closed 3 days ago

CR7273868 commented 1 week ago
#[utoipauto]
#[derive(utoipa::OpenApi)]
#[openapi()] // try to emulate () to get it to work
pub struct ApiDoc;

Error message I seem to be getting is: proc-macro panicked: unsupported proc macro punctuation character '['rust-analyzermacro-error

Although, there are no visible syntax errors (there are none to be fair). Any clue what the issue is here?

My cargo dependecies: axum = { version = "0.7.5" } axum_thiserror = "0.1.0" axum-extra = { version = "0.9.4", features = ["typed-header"] } axum-macros = "0.4.2" utoipa = "^5" utoipa-swagger-ui = { version = "8", features = ["axum", "debug-embed"] } utoipauto = "0.2.0"

DenuxPlays commented 1 week ago

Can you show the output what you get when you do cargo build?

DenuxPlays commented 3 days ago

No further information was given