mirror of https://git.sr.ht/~stygianentity/bincode
Added #[serde(untagged)] to the documentation of attributes that don't work (#486)
This commit is contained in:
parent
6293dab41b
commit
20e4a02ea3
|
|
@ -52,14 +52,13 @@
|
|||
//!
|
||||
//! Currently the `serde` feature will automatically enable the `alloc` and `std` feature. If you're running in a `#[no_std]` environment consider using bincode's own derive macros.
|
||||
//!
|
||||
//! Because bincode is a format without meta data, there are several known issues with serde's `skip` attributes. Please do not use `skip` attributes if you plan on using bincode, or use bincode's own `derive` macros.
|
||||
//!
|
||||
//! This includes:
|
||||
//! Because bincode is a format without meta data, there are several known issues with serde's attributes. Please do not use any of the following attributes if you plan on using bincode, or use bincode's own `derive` macros.
|
||||
//! - `#[serde(skip)]`
|
||||
//! - `#[serde(skip_serializing)]`
|
||||
//! - `#[serde(skip_deserializing)]`
|
||||
//! - `#[serde(skip_serializing_if = "path")]`
|
||||
//! - `#[serde(flatten)]`
|
||||
//! - `#[serde(untagged)]`
|
||||
//!
|
||||
//! **Using any of the above attributes can and will cause issues with bincode and will result in lost data**. Consider using bincode's own derive macro instead.
|
||||
//!
|
||||
|
|
|
|||
Loading…
Reference in New Issue