Go to file
2026-06-25 22:51:16 +09:00
crates Make decodal the published library crate 2026-06-25 22:51:16 +09:00
doc/manual/souce Make decodal the published library crate 2026-06-25 22:51:16 +09:00
editors/tree-sitter-decodal Add array concat operator 2026-06-19 01:01:04 +09:00
examples Make decodal the published library crate 2026-06-25 22:51:16 +09:00
site/decodal-site Make decodal the published library crate 2026-06-25 22:51:16 +09:00
.envrc Set up Cargo and Nix project 2026-06-16 01:46:49 +09:00
.gitignore Migrate documentation site to Astro 2026-06-17 00:22:32 +09:00
Cargo.lock Make decodal the published library crate 2026-06-25 22:51:16 +09:00
Cargo.toml Prepare crates.io release metadata 2026-06-25 22:25:01 +09:00
devshell.nix Add Svelte docs site and WASM playground 2026-06-17 00:07:11 +09:00
flake.lock Set up Cargo and Nix project 2026-06-16 01:46:49 +09:00
flake.nix Set up Cargo and Nix project 2026-06-16 01:46:49 +09:00
LICENSE-APACHE Prepare crates.io release metadata 2026-06-25 22:25:01 +09:00
LICENSE-MIT Prepare crates.io release metadata 2026-06-25 22:25:01 +09:00
package.nix Make decodal the published library crate 2026-06-25 22:51:16 +09:00
README.md Make decodal the published library crate 2026-06-25 22:51:16 +09:00

Decodal

Decodal is a small deterministic DSL for describing, composing, validating, and materializing structured data.

It is designed around a lightweight Rust library:

  • host-supplied imports through SourceLoader
  • no filesystem access in the library core
  • concrete and abstract values with constraints and defaults
  • deterministic expression evaluation
  • optional regex support behind a Cargo feature
  • browser playground support through WebAssembly

Library crate

Embedded hosts should depend on decodal and provide imports with a SourceLoader.

[dependencies]
decodal = "0.1"

CLI

A standalone CLI is kept in this repository as the decodal-cli workspace package. It builds a decodal binary, but it is not the primary crates.io package.

Run a Decodal file from the repository:

cargo run -q -p decodal-cli -- examples/advanced/main.dcdl

Enable optional regex support when needed:

cargo run -q -p decodal-cli --features regex -- examples/regex/main.dcdl

Web playground

The static documentation site and browser playground live under:

site/decodal-site/

License

Licensed under either of:

  • Apache License, Version 2.0
  • MIT license

at your option.