serde_attributes/
lib.rs

1//! Serde Attributes. [Extract from](https://github.com/serde-rs/serde/blob/v1.0.127/serde_derive/src/internals/attr.rs#L290)
2//!
3#![cfg_attr(not(feature = "std"), no_std)]
4
5extern crate alloc;
6
7#[cfg(feature = "attr-alias")]
8pub mod alias;
9#[cfg(feature = "attr-alias")]
10pub use alias::Alias;
11
12#[cfg(feature = "attr-rename")]
13pub mod rename;
14#[cfg(feature = "attr-rename")]
15pub use rename::{Rename, RenameIndependent};
16
17#[cfg(feature = "attr-rename-all")]
18pub mod rename_all;
19#[cfg(feature = "attr-rename-all")]
20pub use rename_all::{RenameAll, RenameAllIndependent};
21
22/// [Ref](https://github.com/serde-rs/serde/blob/v1.0.127/serde_derive/src/internals/symbol.rs#L26)
23#[cfg(any(feature = "attr-rename", feature = "attr-rename-all"))]
24#[cfg(feature = "with-syn")]
25pub const SERIALIZE: &str = "serialize";
26#[cfg(any(feature = "attr-rename", feature = "attr-rename-all"))]
27#[cfg(feature = "with-syn")]
28/// [Ref](https://github.com/serde-rs/serde/blob/v1.0.127/serde_derive/src/internals/symbol.rs#L14)
29pub const DESERIALIZE: &str = "deserialize";