Skip to content

Mention a required feature in axum doc#256

Merged
jplatte merged 1 commit intotamasfe:masterfrom
mtizim:axum-json-example-doc
Oct 30, 2025
Merged

Mention a required feature in axum doc#256
jplatte merged 1 commit intotamasfe:masterfrom
mtizim:axum-json-example-doc

Conversation

@mtizim
Copy link
Copy Markdown
Contributor

@mtizim mtizim commented Oct 28, 2025

#255

Might be obvious to the devs of this crate, but it took me a stupidly long time - I assumed that copy-pasting from the example page from the axum feature would be enough, and the error message you get if you do not enable axum-json is rather gnarly.

@mtizim mtizim changed the title Mention a required feature in axum-json doc Mention a required feature in axum doc Oct 28, 2025
Copy link
Copy Markdown
Collaborator

@jplatte jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the PR! I agree this should be documented. However, I think it makes more sense to mention this required feature earlier, as it is already required for the snippet above. How about adding a parenthesis to line 13? Like this:

//! Take the following `axum` example (requires aide's `axum-json` feature):

@mtizim mtizim force-pushed the axum-json-example-doc branch from b710f26 to a2355cf Compare October 29, 2025 23:42
@mtizim
Copy link
Copy Markdown
Contributor Author

mtizim commented Oct 29, 2025

Makes sense, changed

Copy link
Copy Markdown
Collaborator

@jplatte jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jplatte jplatte merged commit b64e99c into tamasfe:master Oct 30, 2025
1 check passed
alexmohr pushed a commit to alexmohr/aide that referenced this pull request Nov 14, 2025
alexmohr pushed a commit to alexmohr/aide that referenced this pull request Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants