mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 07:51:03 +00:00
Use explicit re-export of serde_derive to give rustc more info
rustc will start looking behind `#[cfg(FALSE)]` items to start giving better diagnostics. By using an explicit re-export instead of a glob export, we tell rustc that `Deserialize` and `Serialize` exist here.
This commit is contained in:
+1
-1
@@ -340,7 +340,7 @@ mod std_error;
|
|||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
#[cfg(feature = "serde_derive")]
|
#[cfg(feature = "serde_derive")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub use serde_derive::*;
|
pub use serde_derive::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]
|
#[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]
|
||||||
mod actually_private {
|
mod actually_private {
|
||||||
|
|||||||
Reference in New Issue
Block a user