mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 21:48:02 +00:00
Add experiment to produce precompiled builds of serde_derive
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
```toml
|
||||
# Cargo.toml
|
||||
|
||||
[dependencies]
|
||||
serde = "1" # no features=["derive"]
|
||||
serde_derive-x86_64-unknown-linux-gnu = "1.0.171-alpha.0"
|
||||
```
|
||||
|
||||
```rust
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct MyStruct {
|
||||
/* ... */
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user