Skip to content

Commit 73bea12

Browse files
committedMay 20, 2022
Upgrade some crates, add new example
1 parent a6dbfa0 commit 73bea12

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed
 

‎.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"editor.tabSize": 2,
33
"rust-analyzer.cargo.allFeatures": true,
4-
"files.autoSave": "afterDelay",
4+
"files.autoSave": "off",
55
}

‎Cargo.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rant"
3-
version = "4.0.0-alpha.32"
3+
version = "4.0.0-alpha.33"
44
edition = "2021"
55
description = "The Rant procedural templating language"
66
license = "MIT OR Apache-2.0"
@@ -9,15 +9,16 @@ homepage = "https://rant-lang.org"
99
keywords = ["rant", "templating", "procedural", "generation", "procgen"]
1010
categories = ["text-processing", "game-development", "template-engine"]
1111
readme = "README.md"
12-
rust-version = "1.58.1"
12+
rust-version = "1.61.0"
1313
include = [
1414
"**/*.rs",
1515
"Cargo.toml",
1616
"README.md",
1717
"LICENSE*",
1818
"THIRD_PARTY_LICENSES*",
1919
"CHANGELOG.md",
20-
"!tests/unincluded_*.rs"
20+
"!tests/unincluded_*.rs",
21+
"src/tools/cli/_*.txt"
2122
]
2223
default-run = "rant"
2324
# publish = false
@@ -50,7 +51,7 @@ quickscope = "0.2.0" # Powers the variable scoping system.
5051
rand = "0.8.3" # RNG utilities used throughout Rant.
5152
rand_xoshiro = "0.6.0" # RNG implementation used by the Rant runtime.
5253
smallvec = "1.6.1" # List optimization used throughout Rant.
53-
smartstring = "0.2.6" # String optimization used throughout Rant.
54+
smartstring = "1.0.1" # String optimization used throughout Rant.
5455
unicode-segmentation = "1.7.1" # Used by Rant to index strings by grapheme cluster.
5556

5657
# CLI

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Rant's CLI can run Rant code from files or the command line.
8585
Install it from Cargo with:
8686

8787
```sh
88-
$ cargo install rant --version 4.0.0-alpha.32 --features cli
88+
$ cargo install rant --version 4.0.0-alpha.33 --features cli
8989
```
9090

9191
Then run it:

‎examples/cartesian-product.rant

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Define A, B, and A x B
2+
<%a = (1; 2; 3)>
3+
<%b = (A; B; C)>
4+
<%axb = [tuple: ** <a>; ** <b> |> tuple]>
5+
6+
# Display the results
7+
[ws-fmt: verbatim]
8+
A = <a>\n
9+
B = <b>\n
10+
A x B = <axb>\n

0 commit comments

Comments
 (0)
Please sign in to comment.