2023-07-18 14:31:35 -05:00
|
|
|
```toml
|
|
|
|
# Cargo.toml
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
serde = "1" # no features=["derive"]
|
2023-07-19 14:29:30 -05:00
|
|
|
serde_derive-x86_64-unknown-linux-gnu = "1.0.171-alpha.3"
|
2023-07-18 14:31:35 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
```rust
|
|
|
|
use serde_derive::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
#[derive(Deserialize, Serialize)]
|
|
|
|
pub struct MyStruct {
|
|
|
|
/* ... */
|
|
|
|
}
|
|
|
|
```
|