docs: Document that vpath and json macros are feature-gated (#3615)

This commit is contained in:
Consoli
2026-03-24 18:53:43 +01:00
committed by Yann Simon
parent 9c67c6c33a
commit ff8710bcf3
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -130,6 +130,7 @@ impl IntoResponse for ErasedJson {
/// ```
/// let response = axum_extra::json!(["trailing",]);
/// ```
#[cfg_attr(docsrs, doc(cfg(feature = "erased-json")))]
#[macro_export]
macro_rules! json {
($($t:tt)*) => {
+1
View File
@@ -68,6 +68,7 @@ pub const fn __private_validate_static_path(path: &'static str) -> &'static str
/// ```
///
/// This macro is available only on rust versions 1.80 and above.
#[cfg_attr(docsrs, doc(cfg(feature = "routing")))]
#[rustversion::since(1.80)]
#[macro_export]
macro_rules! vpath {