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
+8 -3
View File
@@ -1,5 +1,5 @@
[package]
name = "decodal"
name = "decodal-cli"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
@@ -9,10 +9,15 @@ readme.workspace = true
description = "Command-line interface for the Decodal data description language."
keywords = ["decodal", "dsl", "config", "cli"]
categories = ["command-line-utilities", "config"]
publish = false
[[bin]]
name = "decodal"
path = "src/main.rs"
[features]
default = []
regex = ["decodal-core/regex"]
regex = ["decodal/regex"]
[dependencies]
decodal-core = { version = "0.1.0", path = "../decodal-core" }
decodal = { version = "0.1.0", path = "../decodal-core" }
+2 -2
View File
@@ -4,7 +4,7 @@ use std::{
process::ExitCode,
};
use decodal_core::{
use decodal::{
Data, Diagnostic, DiagnosticKind, Engine, LoadedSource, SourceId, SourceLoader, Span,
format_diagnostic_with,
};
@@ -28,7 +28,7 @@ fn run() -> Result<(), String> {
Ok(())
}
"--version" | "-V" => {
println!("Decodal {}", decodal_core::version());
println!("Decodal {}", decodal::version());
Ok(())
}
"check" => {