Prepare crates.io release metadata

This commit is contained in:
2026-06-25 22:25:01 +09:00
parent c26f9ca50a
commit 6e2363632b
8 changed files with 316 additions and 17 deletions
+23
View File
@@ -20,6 +20,29 @@ cargo test -p decodal-core --features regex
cargo run -q -p decodal --features regex -- examples/regex/main.dcdl
```
## crates.io release
Crates are published as versioned workspace packages under the dual license `MIT OR Apache-2.0`.
The dependency order matters because `decodal` and `decodal-wasm` depend on `decodal-core` from crates.io.
```sh
cargo publish -p decodal-core
# wait until crates.io index has decodal-core 0.1.0
cargo publish -p decodal
cargo publish -p decodal-wasm
```
Before publishing, run:
```sh
cargo fmt --check
cargo test
cargo check -p decodal-core --no-default-features
cargo publish -p decodal-core --dry-run
```
`cargo publish --dry-run` for `decodal` and `decodal-wasm` will fail until the matching `decodal-core` version is already visible in the crates.io index.
## Web site and playground
The Astro documentation site and browser playground are kept in: