forked from serde-rs/serde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.rs
32 lines (29 loc) · 753 Bytes
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//! This crate provides Serde's two derive macros.
//!
//! ```edition2021
//! # use serde_derive::{Deserialize, Serialize};
//! #
//! #[derive(Serialize, Deserialize)]
//! # struct S;
//! #
//! # fn main() {}
//! ```
//!
//! Please refer to [https://serde.rs/derive.html] for how to set this up.
//!
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.183")]
#[cfg(all(
serde_derive_build = "source",
target_arch = "x86_64",
target_os = "linux",
target_env = "gnu"
))]
include!("lib_from_source.rs");
#[cfg(all(
not(serde_derive_build = "source"),
target_arch = "x86_64",
target_os = "linux",
target_env = "gnu"
))]
include!("lib_precompiled.rs");