Skip to content

Commit 87b0d9f

Browse files
committed
chore: Bump unilang version to 0.31.0
- Update workspace version from 0.30.0 to 0.31.0 - Update all documentation examples and tests - Update cargo_unilang dependency to match new version
1 parent 2df7075 commit 87b0d9f

File tree

10 files changed

+24
-24
lines changed

10 files changed

+24
-24
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ path = "module/core/unilang_parser"
121121
default-features = false
122122

123123
[workspace.dependencies.unilang]
124-
version = "~0.30.0"
124+
version = "~0.31.0"
125125
path = "module/core/unilang"
126126
default-features = false
127127

module/core/cargo_unilang/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = [ "command-line-utilities", "development-tools" ]
1010

1111
[dependencies]
1212
# CLI framework (Rust CLI Framework Mandate compliance)
13-
unilang = { version = "0.30", path = "../unilang" }
13+
unilang = { version = "0.31", path = "../unilang" }
1414

1515
# For Cargo.toml parsing and generation
1616
toml_edit = "0.22"

module/core/cargo_unilang/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ cargo_unilang .new project::my-tool \
4949
**What it creates**:
5050
```
5151
my-cli/
52-
├── Cargo.toml # unilang = "0.30" with warnings
52+
├── Cargo.toml # unilang = "0.31" with warnings
5353
├── src/main.rs # 15-line minimal example
5454
└── commands.yaml # Example command definitions
5555
```
@@ -251,7 +251,7 @@ Unilang's build.rs does this automatically.
251251
**❌ Wrong**:
252252
```toml
253253
[dependencies]
254-
unilang = "0.30"
254+
unilang = "0.31"
255255
serde_yaml = "0.9" # ❌ Already in unilang
256256
walkdir = "2.0" # ❌ Already in unilang
257257

@@ -262,7 +262,7 @@ phf_codegen = "0.11" # ❌ Already in unilang
262262
**✅ Correct**:
263263
```toml
264264
[dependencies]
265-
unilang = "0.30" # ✅ Only dependency needed
265+
unilang = "0.31" # ✅ Only dependency needed
266266
```
267267

268268
### Problem 3: Deprecated API

module/core/cargo_unilang/src/checks/deps.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ version = "0.1.0"
9494
edition = "2021"
9595
9696
[dependencies]
97-
unilang = "0.30"
97+
unilang = "0.31"
9898
"#
9999
).unwrap();
100100

@@ -112,7 +112,7 @@ name = "test"
112112
version = "0.1.0"
113113
114114
[dependencies]
115-
unilang = "0.30"
115+
unilang = "0.31"
116116
serde_yaml = "0.9"
117117
"#
118118
).unwrap();
@@ -128,7 +128,7 @@ serde_yaml = "0.9"
128128
let temp = assert_fs::TempDir::new().unwrap();
129129
temp.child( "Cargo.toml" ).write_str(
130130
r#"[dependencies]
131-
unilang = "0.30"
131+
unilang = "0.31"
132132
serde_yaml = "0.9"
133133
walkdir = "2.0"
134134
phf = "0.11"

module/core/cargo_unilang/src/commands/check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ name = "test"
316316
version = "0.1.0"
317317
318318
[dependencies]
319-
unilang = "0.30"
319+
unilang = "0.31"
320320
"#
321321
).unwrap();
322322

@@ -346,7 +346,7 @@ unilang = "0.30"
346346
temp.child( "build.rs" ).write_str( "fn main() { serde_yaml::from_str(); }" ).unwrap();
347347
temp.child( "Cargo.toml" ).write_str(
348348
r#"[dependencies]
349-
unilang = "0.30"
349+
unilang = "0.31"
350350
serde_yaml = "0.9"
351351
"#
352352
).unwrap();

module/core/cargo_unilang/src/commands/help.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ PARAMETERS:
8787
8888
WHAT IT CREATES:
8989
my-cli/
90-
├── Cargo.toml # unilang = 0.30 with warnings
90+
├── Cargo.toml # unilang = 0.31 with warnings
9191
├── src/main.rs # 15-line minimal example
9292
└── commands.yaml # Example command
9393

module/core/cargo_unilang/src/commands/new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ pub fn execute( params : NewParams ) -> Result< i32, String >
204204
{
205205
// Concise (default)
206206
println!( "Created project: {}/", params.project );
207-
println!( " ├── Cargo.toml (unilang = \"0.30\" with warnings)" );
207+
println!( " ├── Cargo.toml (unilang = \"0.31\" with warnings)" );
208208
println!( " ├── src/main.rs (15-line minimal example)" );
209209
println!( " └── commands.yaml (example command)" );
210210
println!();

module/core/cargo_unilang/src/templates/cargo_toml.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ edition = "2021"
1818
1919
[dependencies]
2020
# Unilang with default features (Approach #2: Multi-YAML Build-Time Static)
21-
unilang = "0.30"
21+
unilang = "0.31"
2222
2323
# ⚠️ IMPORTANT: Do NOT add these - unilang already provides them:
2424
# ❌ serde_yaml (via yaml_parser feature)
@@ -47,7 +47,7 @@ mod tests
4747
{
4848
let content = cargo_toml( "my-cli", None, None );
4949
assert!( content.contains( "name = \"my-cli\"" ) );
50-
assert!( content.contains( "unilang = \"0.30\"" ) );
50+
assert!( content.contains( "unilang = \"0.31\"" ) );
5151
assert!( content.contains( "Do NOT create build.rs" ) );
5252
assert!( content.contains( "license = \"MIT\"" ) );
5353
}

module/core/cargo_unilang/tests/integration_test.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ fn test_new_verbosity_3_debug()
223223
fn test_check_verbosity_levels()
224224
{
225225
let temp = assert_fs::TempDir::new().unwrap();
226-
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.30\"\n" ).unwrap();
226+
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.31\"\n" ).unwrap();
227227

228228
// Verbosity 0 - silent
229229
Command::cargo_bin( "cargo_unilang" )
@@ -312,7 +312,7 @@ fn test_new_exit_3_already_exists()
312312
fn test_check_exit_0_no_issues()
313313
{
314314
let temp = assert_fs::TempDir::new().unwrap();
315-
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.30\"\n" ).unwrap();
315+
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.31\"\n" ).unwrap();
316316

317317
Command::cargo_bin( "cargo_unilang" )
318318
.unwrap()
@@ -328,7 +328,7 @@ fn test_check_exit_1_issues_found()
328328
{
329329
let temp = assert_fs::TempDir::new().unwrap();
330330
temp.child( "build.rs" ).write_str( "fn main() { serde_yaml::from_str(); }" ).unwrap();
331-
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.30\"\n" ).unwrap();
331+
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.31\"\n" ).unwrap();
332332

333333
Command::cargo_bin( "cargo_unilang" )
334334
.unwrap()
@@ -515,7 +515,7 @@ fn test_check_detects_custom_build_rs()
515515
{
516516
let temp = assert_fs::TempDir::new().unwrap();
517517
temp.child( "build.rs" ).write_str( "fn main() { serde_yaml::from_str(); }" ).unwrap();
518-
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.30\"\n" ).unwrap();
518+
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.31\"\n" ).unwrap();
519519

520520
Command::cargo_bin( "cargo_unilang" )
521521
.unwrap()
@@ -533,7 +533,7 @@ fn test_check_detects_duplicate_dependencies()
533533
let temp = assert_fs::TempDir::new().unwrap();
534534
temp.child( "Cargo.toml" ).write_str(
535535
r#"[dependencies]
536-
unilang = "0.30"
536+
unilang = "0.31"
537537
serde_yaml = "0.9"
538538
"#
539539
).unwrap();
@@ -562,7 +562,7 @@ fn main() {
562562
}
563563
"#
564564
).unwrap();
565-
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.30\"\n" ).unwrap();
565+
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.31\"\n" ).unwrap();
566566

567567
Command::cargo_bin( "cargo_unilang" )
568568
.unwrap()
@@ -587,7 +587,7 @@ fn main() {
587587
}
588588
"#
589589
).unwrap();
590-
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.30\"\n" ).unwrap();
590+
temp.child( "Cargo.toml" ).write_str( "[dependencies]\nunilang = \"0.31\"\n" ).unwrap();
591591

592592
Command::cargo_bin( "cargo_unilang" )
593593
.unwrap()
@@ -649,7 +649,7 @@ fn test_check_ignores_comments_in_cargo_toml()
649649
let temp = assert_fs::TempDir::new().unwrap();
650650
temp.child( "Cargo.toml" ).write_str(
651651
r#"[dependencies]
652-
unilang = "0.30"
652+
unilang = "0.31"
653653
654654
# ⚠️ IMPORTANT: Do NOT add these - unilang already provides them:
655655
# ❌ serde_yaml (via yaml_parser feature)
@@ -674,7 +674,7 @@ fn test_check_multiple_issues()
674674
temp.child( "build.rs" ).write_str( "fn main() { serde_yaml::from_str(); }" ).unwrap();
675675
temp.child( "Cargo.toml" ).write_str(
676676
r#"[dependencies]
677-
unilang = "0.30"
677+
unilang = "0.31"
678678
serde_yaml = "0.9"
679679
walkdir = "2.0"
680680
"#

module/core/unilang/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unilang"
3-
version = "0.30.0"
3+
version = "0.31.0"
44
edition = "2021"
55
rust-version = "1.70"
66
authors = [

0 commit comments

Comments
 (0)