rustlings/Cargo.toml

92 lines
2.3 KiB
TOML
Raw Normal View History

2024-03-28 19:34:48 +03:00
[workspace]
resolver = "2"
2024-03-31 19:59:01 +03:00
exclude = [
2024-07-25 16:12:14 +03:00
"tests/test_exercises",
2024-04-01 03:11:52 +03:00
"dev",
2024-03-31 19:59:01 +03:00
]
2024-03-28 19:34:48 +03:00
[workspace.package]
2024-08-29 18:20:17 +03:00
version = "6.3.0"
2022-11-11 18:12:09 +03:00
authors = [
"Mo Bitar <mo8it@proton.me>", # https://github.com/mo8it
"Liv <mokou@fastmail.com>", # https://github.com/shadows-withal
2024-04-24 17:15:14 +03:00
# Alumni
"Carol (Nichols || Goulding) <carol.nichols@gmail.com>", # https://github.com/carols10cents
2022-11-11 18:12:09 +03:00
]
2024-04-24 17:15:14 +03:00
repository = "https://github.com/rust-lang/rustlings"
2024-03-28 19:34:48 +03:00
license = "MIT"
edition = "2021" # On Update: Update the edition of the `rustfmt` command that checks the solutions.
2024-08-02 17:40:06 +03:00
rust-version = "1.80"
2018-04-26 22:41:19 +03:00
[workspace.dependencies]
2024-10-29 16:25:44 +03:00
serde = { version = "1.0.214", features = ["derive"] }
2024-09-26 13:28:48 +03:00
toml_edit = { version = "0.22.22", default-features = false, features = ["parse", "serde"] }
2024-03-28 19:34:48 +03:00
[package]
name = "rustlings"
description = "Small exercises to get you used to reading and writing Rust code!"
version.workspace = true
authors.workspace = true
2024-04-24 17:15:14 +03:00
repository.workspace = true
2024-03-28 19:34:48 +03:00
license.workspace = true
edition.workspace = true
2024-08-02 17:40:06 +03:00
rust-version.workspace = true
2024-04-24 17:15:14 +03:00
keywords = [
"exercise",
"learning",
]
2024-04-16 04:56:08 +03:00
include = [
2024-04-25 20:58:55 +03:00
"/src/",
2024-04-16 04:56:08 +03:00
"/exercises/",
2024-04-25 20:58:55 +03:00
"/solutions/",
# A symlink to be able to include `dev/Cargo.toml` although `dev` is excluded.
"/dev-Cargo.toml",
2024-04-16 04:56:08 +03:00
"/README.md",
2024-04-25 20:58:55 +03:00
"/LICENSE",
2024-04-16 04:56:08 +03:00
]
2024-03-28 19:34:48 +03:00
2018-04-26 22:41:19 +03:00
[dependencies]
2024-11-11 16:35:22 +03:00
anyhow = "1.0.93"
2024-10-14 16:24:42 +03:00
clap = { version = "4.5.20", features = ["derive"] }
2024-08-24 01:14:12 +03:00
crossterm = { version = "0.28.1", default-features = false, features = ["windows", "events"] }
2024-10-29 16:25:44 +03:00
notify = "7.0.0"
2024-08-05 04:15:43 +03:00
os_pipe = "1.2.1"
2024-08-29 18:20:17 +03:00
rustlings-macros = { path = "rustlings-macros", version = "=6.3.0" }
2024-10-26 17:54:54 +03:00
serde_json = "1.0.132"
serde.workspace = true
toml_edit.workspace = true
2019-03-20 23:05:45 +03:00
[target.'cfg(not(windows))'.dependencies]
2024-10-29 16:25:44 +03:00
rustix = { version = "0.38.38", default-features = false, features = ["std", "stdio", "termios"] }
2024-08-08 15:04:43 +03:00
[dev-dependencies]
2024-11-11 16:35:22 +03:00
tempfile = "3.14.0"
2024-08-08 15:04:43 +03:00
2024-03-29 03:25:32 +03:00
[profile.release]
panic = "abort"
[profile.dev]
panic = "abort"
2024-04-25 20:02:07 +03:00
[package.metadata.release]
pre-release-hook = ["./release-hook.sh"]
pre-release-commit-message = "Release 🎉"
2024-07-28 21:30:23 +03:00
2024-08-16 01:15:33 +03:00
[workspace.lints.rust]
unsafe_code = "forbid"
unstable_features = "forbid"
[workspace.lints.clippy]
empty_loop = "forbid"
disallowed-types = "deny"
disallowed-methods = "deny"
2024-08-16 01:15:33 +03:00
infinite_loop = "deny"
mem_forget = "deny"
dbg_macro = "warn"
todo = "warn"
2024-07-28 21:30:23 +03:00
# TODO: Remove after the following fix is released: https://github.com/rust-lang/rust-clippy/pull/13102
needless_option_as_deref = "allow"
2024-08-16 01:15:33 +03:00
[lints]
workspace = true