summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.typos.toml7
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml8
-rwxr-xr-xrelease-hook.sh8
-rw-r--r--rustlings-macros/Cargo.toml3
5 files changed, 26 insertions, 4 deletions
diff --git a/.typos.toml b/.typos.toml
new file mode 100644
index 0000000..a74498a
--- /dev/null
+++ b/.typos.toml
@@ -0,0 +1,7 @@
+[files]
+extend-exclude = [
+ "CHANGELOG.md",
+]
+
+[default.extend-words]
+"ratatui" = "ratatui"
diff --git a/Cargo.lock b/Cargo.lock
index 23c4887..788cbbb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -679,7 +679,7 @@ dependencies = [
[[package]]
name = "rustlings"
-version = "6.0.0-beta.0"
+version = "6.0.0-alpha.0"
dependencies = [
"anyhow",
"assert_cmd",
@@ -698,7 +698,7 @@ dependencies = [
[[package]]
name = "rustlings-macros"
-version = "6.0.0-beta.0"
+version = "6.0.0-alpha.0"
dependencies = [
"quote",
"serde",
diff --git a/Cargo.toml b/Cargo.toml
index 31e7456..5f22665 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,7 @@ exclude = [
]
[workspace.package]
-version = "6.0.0-beta.0"
+version = "6.0.0-alpha.0"
authors = [
"Liv <mokou@fastmail.com>",
"Mo Bitar <mo8it@proton.me>",
@@ -41,6 +41,7 @@ include = [
"/info.toml",
"/LICENSE",
"/README.md",
+ "/solutions/",
"/src/",
]
@@ -52,7 +53,7 @@ hashbrown = "0.14.3"
notify-debouncer-mini = "0.4.1"
os_pipe = "1.1.5"
ratatui = "0.26.2"
-rustlings-macros = { path = "rustlings-macros", version = "6.0.0-beta.0" }
+rustlings-macros = { path = "rustlings-macros", version = "=6.0.0-alpha.0" }
serde.workspace = true
toml_edit.workspace = true
which = "6.0.1"
@@ -66,3 +67,6 @@ panic = "abort"
[profile.dev]
panic = "abort"
+
+[package.metadata.release]
+pre-release-hook = ["./release-hook.sh"]
diff --git a/release-hook.sh b/release-hook.sh
new file mode 100755
index 0000000..3a2c537
--- /dev/null
+++ b/release-hook.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Error out if any command fails
+set -e
+
+typos
+cargo outdated -w --exit-code 1
+cargo test --workspace --all-targets
diff --git a/rustlings-macros/Cargo.toml b/rustlings-macros/Cargo.toml
index c9c1d2f..f9aba66 100644
--- a/rustlings-macros/Cargo.toml
+++ b/rustlings-macros/Cargo.toml
@@ -14,3 +14,6 @@ proc-macro = true
quote = "1.0.36"
serde.workspace = true
toml_edit.workspace = true
+
+[package.metadata.release]
+verify = false