mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-16 00:00:18 +02:00
docs: Document that vpath and json macros are feature-gated (#3615)
This commit is contained in:
@@ -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)*) => {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user