Make decodal the published library crate

This commit is contained in:
2026-06-25 22:51:16 +09:00
parent 6e2363632b
commit 87fef44c68
20 changed files with 159 additions and 96 deletions
+4 -4
View File
@@ -37,7 +37,7 @@ primitive type conflict や明らかな numeric bound conflict は合成時に
## Core defaults
`decodal-core` defaults to `std` only.
`decodal` defaults to `std` only.
```toml
[features]
@@ -46,7 +46,7 @@ std = []
regex = ["std", "dep:regex"]
```
Building `decodal-core` with `--no-default-features` keeps the core in `no_std + alloc` mode and avoids optional dependencies.
Building `decodal` with `--no-default-features` keeps the core in `no_std + alloc` mode and avoids optional dependencies.
## Regex
@@ -54,7 +54,7 @@ Regex constraints are implemented behind the `regex` feature.
When the feature is disabled, regex constraints parse and compose, but validating a concrete value against them returns an unsupported feature diagnostic.
```sh
cargo run -q -p decodal --features regex -- examples/regex/main.dcdl
cargo run -q -p decodal-cli --features regex -- examples/regex/main.dcdl
```
Regex constraints are accumulated during `&` composition.
@@ -63,5 +63,5 @@ Concrete strings must match every regex constraint attached to the abstract valu
## CLI features
`decodal-cli` exposes a matching `regex` feature that enables `decodal-core/regex`.
`decodal-cli` exposes a matching `regex` feature that enables `decodal/regex`.
The feature is not enabled by default so the default CLI binary remains small.