Expose derive macro behind feature

This commit is contained in:
2026-06-26 00:59:39 +09:00
parent b8404df047
commit ada3578a1d
6 changed files with 12 additions and 10 deletions
+3 -5
View File
@@ -22,17 +22,15 @@ decodal = "0.1"
## 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
[dependencies]
decodal = "0.1"
decodal-derive = "0.1"
decodal = { version = "0.1", features = ["derive"] }
```
```rust
use decodal::{DecodalDecode, DecodalSchema, Engine};
use decodal_derive::Decodal;
use decodal::{Decodal, DecodalDecode, DecodalSchema, Engine};
#[derive(Decodal)]
struct Service {