diff --git a/serde_with/src/content/mod.rs b/serde_with/src/content/mod.rs index 86852e2f..f513cb7f 100644 --- a/serde_with/src/content/mod.rs +++ b/serde_with/src/content/mod.rs @@ -2,5 +2,7 @@ //! //! +#![cfg(not(tarpaulin_include))] + pub(crate) mod de; pub(crate) mod ser; diff --git a/serde_with_macros/src/lib.rs b/serde_with_macros/src/lib.rs index cf2217fb..ac744380 100644 --- a/serde_with_macros/src/lib.rs +++ b/serde_with_macros/src/lib.rs @@ -31,6 +31,8 @@ #![allow(renamed_and_removed_lints)] // Necessary for nightly clippy lints #![allow(clippy::unknown_clippy_lints)] +// Tarpaulin does not work well with proc macros and marks most of the lines as uncovered. +#![cfg(not(tarpaulin_include))] //! proc-macro extensions for [`serde_with`]. //!