Split core library and CLI workspace

This commit is contained in:
2026-06-16 01:58:17 +09:00
parent 2f21d4ec64
commit 12a6e9a84c
8 changed files with 52 additions and 8 deletions
+7
View File
@@ -0,0 +1,7 @@
[package]
name = "decodal"
version = "0.1.0"
edition = "2024"
[dependencies]
decodal-core = { path = "../decodal-core" }
+3
View File
@@ -0,0 +1,3 @@
fn main() {
println!("Decodal {}", decodal_core::version());
}
+11
View File
@@ -0,0 +1,11 @@
[package]
name = "decodal-core"
version = "0.1.0"
edition = "2024"
[features]
default = ["std"]
std = []
regex = []
[dependencies]
+7
View File
@@ -0,0 +1,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION")
}