Skip to content

Feature: Make macros public #1431

Closed as not planned
Closed as not planned
@MRuecklCC

Description

@MRuecklCC

Feature Request

Make marcos in toplevel marco.rs public to other crates.

Motivation

I was just playing around with the custom extractors and rejections, and following along how this is done for JSON bodies in axum. I want to achieve something similar for other content types, and thought I can simply define my own rejections and composite rejections with the same macros. Unfortunately they are declared as pub(crate) so I cant get them :-(

I think they would be useful for other users as well. I assume pulling them into the public API would require some more documentation, besides that the change would be trivial(?).

Alternatives

I understand, that having a larger public API comes with responsibilities on stability etc. So this should be a well agreed upon decision (in either direction).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions