Update generated WASM package README
This commit is contained in:
parent
0b76a600b1
commit
fe127428f9
|
|
@ -22,17 +22,15 @@ decodal = "0.1"
|
||||||
|
|
||||||
## Derive support
|
## Derive support
|
||||||
|
|
||||||
For embedded Rust applications, `decodal-derive` can generate a Decodal schema and typed decoder from a Rust struct.
|
For embedded Rust applications, Decodal can generate a schema and typed decoder from a Rust struct with the `derive` feature.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
decodal = "0.1"
|
decodal = { version = "0.1", features = ["derive"] }
|
||||||
decodal-derive = "0.1"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use decodal::{DecodalDecode, DecodalSchema, Engine};
|
use decodal::{Decodal, DecodalDecode, DecodalSchema, Engine};
|
||||||
use decodal_derive::Decodal;
|
|
||||||
|
|
||||||
#[derive(Decodal)]
|
#[derive(Decodal)]
|
||||||
struct Service {
|
struct Service {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user