Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
34 lines (31 loc) · 1.56 KB
/
Copy pathCargo.toml
File metadata and controls
34 lines (31 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# The two packages, side by side: `rustfront`, the library, and `mtest-rs`, the
# command line tool built on it. The root holds no package, only what they
# share, and the tooling of the repository (scripts/, .github/).
[workspace]
members = ["rustfront", "mtest-rs"]
# The resolver of edition 2024: a workspace without a root package does not
# take it from the edition of its members.
resolver = "3"
# Shared by both packages: one version for both, released together by a tag
# `vX.Y.Z` (see .github/workflows/release.yml, whose `check-version` job
# compares the tag with this version and with the one of the dependency below).
[workspace.package]
version = "1.0.0"
edition = "2024"
# Minimum compiler, set by `libloading` 0.9, which declares 1.88 (edition 2024
# alone would only need 1.85). Without this line, a user would get a raw error
# instead of a message naming the expected version. Checked by the `msrv` job
# of .github/workflows/ci.yml.
rust-version = "1.88"
authors = ["Gauthier F"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Pyrucast/rustfront"
# `mtest-rs` depends on `rustfront` by path in the repository, and by version
# once published: crates.io needs the version, which must follow the one above.
[workspace.dependencies]
rustfront = { path = "rustfront", version = "1.0.0" }
# Lints added to those clippy already applies, for both packages.
# `unnecessary_wraps` rejects a `Result` that can never be an error, and an
# `Option` that is always `Some`. `clippy.toml` extends it to the public API.
[workspace.lints.clippy]
unnecessary_wraps = "warn"