Skip to content

Commit b99115c

Browse files
committed
Use workspace-wide definitions for various meta-data
Cargo now allows us to define certain meta-data in a workspace-wide manner and then more easily reuse that. We intend to update things such as the edition for all crates in the workspace and the version of the two crates being published from the repository should always be kept in sync. This makes those properties (and others) perfect candidates for this infrastructure. With this change we switch over to using workspace-wide properties for a bunch of meta-data.
1 parent b4cd4a3 commit b99115c

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

Cargo.toml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
[workspace]
22
members = ["macros"]
33

4+
[workspace.package]
5+
version = "0.2.19"
6+
authors = ["Daniel Mueller <deso@posteo.net>"]
7+
edition = "2021"
8+
rust-version = "1.71"
9+
license = "Apache-2.0 OR MIT"
10+
homepage = "https://github.com/d-e-s-o/test-log"
11+
repository = "https://github.com/d-e-s-o/test-log.git"
12+
413
[workspace.lints.rust]
514
deprecated-safe = "warn"
615
future-incompatible = "warn"
@@ -35,13 +44,13 @@ wildcard-imports = "warn"
3544

3645
[package]
3746
name = "test-log"
38-
version = "0.2.19"
39-
authors = ["Daniel Mueller <deso@posteo.net>"]
40-
edition = "2021"
41-
rust-version = "1.71"
42-
license = "Apache-2.0 OR MIT"
43-
homepage = "https://github.com/d-e-s-o/test-log"
44-
repository = "https://github.com/d-e-s-o/test-log.git"
47+
version.workspace = true
48+
authors.workspace = true
49+
edition.workspace = true
50+
rust-version.workspace = true
51+
license.workspace = true
52+
homepage.workspace = true
53+
repository.workspace = true
4554
readme = "README.md"
4655
categories = [
4756
"development-tools::testing",

macros/Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[package]
22
name = "test-log-macros"
3-
version = "0.2.19"
4-
authors = ["Daniel Mueller <deso@posteo.net>"]
5-
edition = "2021"
6-
rust-version = "1.71"
7-
license = "Apache-2.0 OR MIT"
8-
repository = "https://github.com/d-e-s-o/test-log.git"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
rust-version.workspace = true
7+
license.workspace = true
8+
homepage.workspace = true
9+
repository.workspace = true
910
description = """
1011
Supporting procedural macro crate for test-log.
1112
"""

0 commit comments

Comments
 (0)