2021-04-09 16:23:13 -05:00
|
|
|
#![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.26.0")]
|
2019-05-31 13:34:18 -05:00
|
|
|
#![allow(unknown_lints, bare_trait_objects)]
|
2021-01-24 18:10:31 -06:00
|
|
|
#![deny(clippy::all, clippy::pedantic)]
|
|
|
|
// Ignored clippy lints
|
2021-01-24 18:07:38 -06:00
|
|
|
#![allow(
|
|
|
|
clippy::cognitive_complexity,
|
2021-08-16 21:31:54 -05:00
|
|
|
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/7575
|
|
|
|
clippy::collapsible_match,
|
2021-02-25 22:52:25 -06:00
|
|
|
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797
|
|
|
|
clippy::manual_map,
|
2021-02-03 22:07:44 -06:00
|
|
|
clippy::missing_panics_doc,
|
2021-01-24 18:07:38 -06:00
|
|
|
clippy::redundant_field_names,
|
|
|
|
clippy::result_unit_err,
|
|
|
|
clippy::should_implement_trait,
|
|
|
|
clippy::trivially_copy_pass_by_ref,
|
|
|
|
clippy::wildcard_in_or_patterns,
|
|
|
|
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
|
|
|
|
clippy::unnested_or_patterns,
|
2018-04-13 00:58:24 -05:00
|
|
|
)]
|
2021-01-24 18:10:31 -06:00
|
|
|
// Ignored clippy_pedantic lints
|
|
|
|
#![allow(
|
|
|
|
clippy::doc_markdown,
|
|
|
|
clippy::enum_glob_use,
|
|
|
|
clippy::items_after_statements,
|
2021-02-18 21:29:51 -06:00
|
|
|
clippy::let_underscore_drop,
|
2021-11-04 21:57:14 -05:00
|
|
|
clippy::manual_assert,
|
2021-01-24 18:10:31 -06:00
|
|
|
clippy::match_same_arms,
|
2021-03-26 22:28:07 -05:00
|
|
|
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6984
|
|
|
|
clippy::match_wildcard_for_single_variants,
|
2021-01-24 18:10:31 -06:00
|
|
|
clippy::missing_errors_doc,
|
2021-01-25 02:02:55 -06:00
|
|
|
clippy::module_name_repetitions,
|
2021-01-24 18:10:31 -06:00
|
|
|
clippy::must_use_candidate,
|
2021-01-25 02:02:55 -06:00
|
|
|
clippy::similar_names,
|
2021-01-24 18:10:31 -06:00
|
|
|
clippy::struct_excessive_bools,
|
|
|
|
clippy::too_many_lines,
|
2021-01-25 02:02:55 -06:00
|
|
|
clippy::unused_self,
|
2021-01-24 18:10:31 -06:00
|
|
|
clippy::wildcard_imports
|
|
|
|
)]
|
2017-04-20 10:11:31 -05:00
|
|
|
|
2017-04-02 23:42:07 -05:00
|
|
|
#[macro_use]
|
2018-01-08 23:49:09 -06:00
|
|
|
extern crate syn;
|
2016-06-30 21:53:57 -05:00
|
|
|
|
2018-01-09 22:34:29 -06:00
|
|
|
extern crate proc_macro2;
|
2018-12-11 00:15:46 -06:00
|
|
|
extern crate quote;
|
2018-01-09 22:34:29 -06:00
|
|
|
|
2021-04-09 16:15:58 -05:00
|
|
|
#[cfg_attr(serde_build_from_git, path = "../serde_derive/src/internals/mod.rs")]
|
|
|
|
#[cfg_attr(not(serde_build_from_git), path = "src/mod.rs")]
|
2018-05-06 01:06:16 -05:00
|
|
|
mod internals;
|
2016-06-30 21:53:57 -05:00
|
|
|
|
2018-05-06 01:06:16 -05:00
|
|
|
pub use internals::*;
|