Compare commits

...

20 Commits

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

8
Cargo.lock generated

@ -679,7 +679,7 @@ dependencies = [
[[package]]
name = "rustlings"
version = "6.0.0-beta.0"
version = "6.0.0-beta.3"
dependencies = [
"anyhow",
"assert_cmd",
@ -698,7 +698,7 @@ dependencies = [
[[package]]
name = "rustlings-macros"
version = "6.0.0-beta.0"
version = "6.0.0-beta.3"
dependencies = [
"quote",
"serde",
@ -965,9 +965,9 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-util"
version = "0.1.7"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "134306a13c5647ad6453e8deaec55d3a44d6021970129e6188735e74bf546697"
checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b"
dependencies = [
"windows-sys 0.52.0",
]

@ -8,7 +8,7 @@ exclude = [
]
[workspace.package]
version = "6.0.0-beta.0"
version = "6.0.0-beta.3"
authors = [
"Liv <mokou@fastmail.com>",
"Mo Bitar <mo8it@proton.me>",
@ -37,11 +37,14 @@ keywords = [
"learning",
]
include = [
"/src/",
"/exercises/",
"/solutions/",
"/info.toml",
"/LICENSE",
# A symlink to be able to include `dev/Cargo.toml` although `dev` is excluded.
"/dev-Cargo.toml",
"/README.md",
"/src/",
"/LICENSE",
]
[dependencies]
@ -52,7 +55,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-beta.3" }
serde.workspace = true
toml_edit.workspace = true
which = "6.0.1"
@ -66,3 +69,6 @@ panic = "abort"
[profile.dev]
panic = "abort"
[package.metadata.release]
pre-release-hook = ["./release-hook.sh"]

@ -29,8 +29,10 @@ This'll also install _Cargo_, Rust's package/project manager.
The following command will download and compile Rustlings:
<!-- TODO: Remove @6.0.0-beta.x -->
```bash
cargo install rustlings --locked
cargo install rustlings@6.0.0-beta.3 --locked
```
### Initialization

@ -0,0 +1 @@
dev/Cargo.toml

@ -16,7 +16,7 @@ bin = [
{ name = "if1", path = "../exercises/03_if/if1.rs" },
{ name = "if2", path = "../exercises/03_if/if2.rs" },
{ name = "if3", path = "../exercises/03_if/if3.rs" },
{ name = "quiz1", path = "../exercises/quiz1.rs" },
{ name = "quiz1", path = "../exercises/quizzes/quiz1.rs" },
{ name = "primitive_types1", path = "../exercises/04_primitive_types/primitive_types1.rs" },
{ name = "primitive_types2", path = "../exercises/04_primitive_types/primitive_types2.rs" },
{ name = "primitive_types3", path = "../exercises/04_primitive_types/primitive_types3.rs" },
@ -47,7 +47,7 @@ bin = [
{ name = "hashmaps1", path = "../exercises/11_hashmaps/hashmaps1.rs" },
{ name = "hashmaps2", path = "../exercises/11_hashmaps/hashmaps2.rs" },
{ name = "hashmaps3", path = "../exercises/11_hashmaps/hashmaps3.rs" },
{ name = "quiz2", path = "../exercises/quiz2.rs" },
{ name = "quiz2", path = "../exercises/quizzes/quiz2.rs" },
{ name = "options1", path = "../exercises/12_options/options1.rs" },
{ name = "options2", path = "../exercises/12_options/options2.rs" },
{ name = "options3", path = "../exercises/12_options/options3.rs" },
@ -64,7 +64,7 @@ bin = [
{ name = "traits3", path = "../exercises/15_traits/traits3.rs" },
{ name = "traits4", path = "../exercises/15_traits/traits4.rs" },
{ name = "traits5", path = "../exercises/15_traits/traits5.rs" },
{ name = "quiz3", path = "../exercises/quiz3.rs" },
{ name = "quiz3", path = "../exercises/quizzes/quiz3.rs" },
{ name = "lifetimes1", path = "../exercises/16_lifetimes/lifetimes1.rs" },
{ name = "lifetimes2", path = "../exercises/16_lifetimes/lifetimes2.rs" },
{ name = "lifetimes3", path = "../exercises/16_lifetimes/lifetimes3.rs" },
@ -99,6 +99,7 @@ bin = [
]
[package]
name = "rustlings-dev"
name = "exercises"
edition = "2021"
# Don't publish the exercises on crates.io!
publish = false

@ -0,0 +1,9 @@
#!/bin/bash
# Error out if any command fails
set -e
cargo run -- dev check
typos
cargo outdated -w --exit-code 1
cargo test --workspace --all-targets

@ -6,6 +6,10 @@ authors.workspace = true
repository.workspace = true
license.workspace = true
edition.workspace = true
include = [
"/src/",
"/info.toml",
]
[lib]
proc-macro = true

@ -15,7 +15,7 @@ struct InfoFile {
#[proc_macro]
pub fn include_files(_: TokenStream) -> TokenStream {
let exercises = toml_edit::de::from_str::<InfoFile>(include_str!("../../info.toml"))
let exercises = toml_edit::de::from_str::<InfoFile>(include_str!("../info.toml"))
.expect("Failed to parse `info.toml`")
.exercises;

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

@ -1 +1 @@
// TODO
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save