Skip to content

Commit 2274b32

Browse files
authored
Specify shared crate metadata at the workspace level (#3077)
This keeps crate metadata in sync across the whole workspace, including MSRV and edition, plus adds some missing metadata fields to Serenity's subcrates.
1 parent d6b9b28 commit 2274b32

File tree

3 files changed

+37
-19
lines changed

3 files changed

+37
-19
lines changed

Cargo.toml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
[package]
2+
name = "serenity"
3+
version = "0.12.4"
24
authors = ["Alex M. M. <[email protected]>"]
35
description = "A Rust library for the Discord API."
6+
readme = "README.md"
7+
include = ["src/**/*", "LICENSE.md", "README.md", "CHANGELOG.md", "build.rs"]
8+
9+
documentation.workspace = true
10+
homepage.workspace = true
11+
repository.workspace = true
12+
keywords.workspace = true
13+
license.workspace = true
14+
edition.workspace = true
15+
rust-version.workspace = true
16+
17+
[workspace]
18+
members = ["examples/*"]
19+
20+
[workspace.package]
421
documentation = "https://docs.rs/serenity"
522
homepage = "https://github.com/serenity-rs/serenity"
23+
repository = "https://github.com/serenity-rs/serenity.git"
624
keywords = ["discord", "api"]
725
license = "ISC"
8-
name = "serenity"
9-
readme = "README.md"
10-
repository = "https://github.com/serenity-rs/serenity.git"
11-
version = "0.12.4"
1226
edition = "2021"
1327
rust-version = "1.74"
14-
include = ["src/**/*", "LICENSE.md", "README.md", "CHANGELOG.md", "build.rs"]
15-
16-
[workspace]
17-
members = ["examples/*"]
1828

1929
[dependencies]
2030
# Required dependencies

command_attr/Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
name = "command_attr"
33
version = "0.5.3"
44
authors = ["Alex M. M. <[email protected]>"]
5-
edition = "2021"
65
description = "Procedural macros for command creation for the Serenity library."
7-
license = "ISC"
6+
7+
documentation.workspace = true
8+
homepage.workspace = true
9+
repository.workspace = true
10+
keywords.workspace = true
11+
license.workspace = true
12+
edition.workspace = true
13+
rust-version.workspace = true
814

915
[lib]
1016
proc-macro = true

voice-model/Cargo.toml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
[package]
2+
name = "serenity-voice-model"
3+
version = "0.2.0"
24
authors = ["Alex M. M. <[email protected]>"]
35
description = "A Rust library for (de)serializing Discord Voice API gateway messages."
4-
documentation = "https://docs.rs/serenity"
5-
homepage = "https://github.com/serenity-rs/serenity"
6-
include = ["src/**/*.rs", "Cargo.toml"]
7-
keywords = ["discord", "api"]
8-
license = "ISC"
9-
name = "serenity-voice-model"
106
# readme = "README.md"
11-
repository = "https://github.com/serenity-rs/serenity.git"
12-
version = "0.2.0"
13-
edition = "2018"
7+
include = ["src/**/*.rs", "Cargo.toml"]
8+
9+
documentation.workspace = true
10+
homepage.workspace = true
11+
repository.workspace = true
12+
keywords.workspace = true
13+
license.workspace = true
14+
edition.workspace = true
15+
rust-version.workspace = true
1416

1517
[dependencies]
1618
bitflags = "2.4"

0 commit comments

Comments
 (0)