1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-05-25 05:26:12 +02:00

Prepare for using cargo-release

This commit is contained in:
mo8it 2024-04-25 19:02:07 +02:00
parent 177e2870c5
commit ca41f9e2df
5 changed files with 26 additions and 4 deletions

7
.typos.toml Normal file
View File

@ -0,0 +1,7 @@
[files]
extend-exclude = [
"CHANGELOG.md",
]
[default.extend-words]
"ratatui" = "ratatui"

4
Cargo.lock generated
View File

@ -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",

View File

@ -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"]

8
release-hook.sh Executable file
View File

@ -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

View File

@ -14,3 +14,6 @@ proc-macro = true
quote = "1.0.36"
serde.workspace = true
toml_edit.workspace = true
[package.metadata.release]
verify = false