From a01c53019fb7bbbfddce217ba36601b650c178d5 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Fri, 1 Sep 2023 15:47:11 +0200 Subject: [PATCH] Define common crates metadata on the workspace level --- Cargo.toml | 8 ++++++++ crates/axum-utils/Cargo.toml | 10 ++++++---- crates/cli/Cargo.toml | 10 ++++++---- crates/config/Cargo.toml | 10 ++++++---- crates/data-model/Cargo.toml | 10 ++++++---- crates/email/Cargo.toml | 10 ++++++---- crates/graphql/Cargo.toml | 10 ++++++---- crates/handlers/Cargo.toml | 10 ++++++---- crates/http/Cargo.toml | 10 ++++++---- crates/iana-codegen/Cargo.toml | 10 ++++++---- crates/iana/Cargo.toml | 10 ++++++---- crates/jose/Cargo.toml | 10 ++++++---- crates/keystore/Cargo.toml | 10 ++++++---- crates/listener/Cargo.toml | 10 ++++++---- crates/matrix-synapse/Cargo.toml | 10 ++++++---- crates/matrix/Cargo.toml | 10 ++++++---- crates/oauth2-types/Cargo.toml | 10 ++++++---- crates/oidc-client/Cargo.toml | 10 ++++++---- crates/policy/Cargo.toml | 10 ++++++---- crates/router/Cargo.toml | 10 ++++++---- crates/spa/Cargo.toml | 10 ++++++---- crates/storage-pg/Cargo.toml | 10 ++++++---- crates/storage/Cargo.toml | 10 ++++++---- crates/tasks/Cargo.toml | 10 ++++++---- crates/templates/Cargo.toml | 10 ++++++---- crates/tower/Cargo.toml | 10 ++++++---- 26 files changed, 158 insertions(+), 100 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 02813bf0..bfd0bdf7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,14 @@ default-members = ["crates/cli"] members = ["crates/*"] resolver = "2" +[workspace.package] +version = "0.1.0" +license = "Apache-2.0" +authors = ["Quentin Gliech "] +edition = "2021" +homepage = "https://matrix-org.github.io/matrix-authentication-service/" +repository = "https://github.com/matrix-org/matrix-authentication-service/" + [workspace.dependencies] # High-level error handling diff --git a/crates/axum-utils/Cargo.toml b/crates/axum-utils/Cargo.toml index c1b8eec6..b34b59e5 100644 --- a/crates/axum-utils/Cargo.toml +++ b/crates/axum-utils/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-axum-utils" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] async-trait = "0.1.73" diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index aceed143..28dfbffc 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-cli" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] anyhow.workspace = true diff --git a/crates/config/Cargo.toml b/crates/config/Cargo.toml index b8f6fd80..0f0377d3 100644 --- a/crates/config/Cargo.toml +++ b/crates/config/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-config" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] tokio = { version = "1.32.0", features = ["fs", "rt"] } diff --git a/crates/data-model/Cargo.toml b/crates/data-model/Cargo.toml index 04a2c1c2..54e61cf6 100644 --- a/crates/data-model/Cargo.toml +++ b/crates/data-model/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-data-model" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] chrono.workspace = true diff --git a/crates/email/Cargo.toml b/crates/email/Cargo.toml index 6e45618e..deb4b7e1 100644 --- a/crates/email/Cargo.toml +++ b/crates/email/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-email" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] async-trait = "0.1.73" diff --git a/crates/graphql/Cargo.toml b/crates/graphql/Cargo.toml index 88db93e2..8dc80a84 100644 --- a/crates/graphql/Cargo.toml +++ b/crates/graphql/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-graphql" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] anyhow.workspace = true diff --git a/crates/handlers/Cargo.toml b/crates/handlers/Cargo.toml index f4bf38c8..d379c0af 100644 --- a/crates/handlers/Cargo.toml +++ b/crates/handlers/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-handlers" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] # Async runtime diff --git a/crates/http/Cargo.toml b/crates/http/Cargo.toml index 36ad68d9..70586810 100644 --- a/crates/http/Cargo.toml +++ b/crates/http/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-http" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] axum = { version = "0.6.20", optional = true } diff --git a/crates/iana-codegen/Cargo.toml b/crates/iana-codegen/Cargo.toml index ef17cd8e..1fb85316 100644 --- a/crates/iana-codegen/Cargo.toml +++ b/crates/iana-codegen/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-iana-codegen" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] anyhow.workspace = true diff --git a/crates/iana/Cargo.toml b/crates/iana/Cargo.toml index 769ce7a1..60e5c19d 100644 --- a/crates/iana/Cargo.toml +++ b/crates/iana/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-iana" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] serde = { workspace = true, optional = true } diff --git a/crates/jose/Cargo.toml b/crates/jose/Cargo.toml index ba03ad4f..9d50ff22 100644 --- a/crates/jose/Cargo.toml +++ b/crates/jose/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-jose" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] base64ct = { version = "1.6.0", features = ["std"] } diff --git a/crates/keystore/Cargo.toml b/crates/keystore/Cargo.toml index 64c171e1..9d1ab52d 100644 --- a/crates/keystore/Cargo.toml +++ b/crates/keystore/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-keystore" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] aead = { version = "0.5.2", features = ["std"] } diff --git a/crates/listener/Cargo.toml b/crates/listener/Cargo.toml index f76d859f..b0bed879 100644 --- a/crates/listener/Cargo.toml +++ b/crates/listener/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-listener" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] bytes = "1.4.0" diff --git a/crates/matrix-synapse/Cargo.toml b/crates/matrix-synapse/Cargo.toml index b281b167..dc13bbb5 100644 --- a/crates/matrix-synapse/Cargo.toml +++ b/crates/matrix-synapse/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-matrix-synapse" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] anyhow.workspace = true diff --git a/crates/matrix/Cargo.toml b/crates/matrix/Cargo.toml index cfefee1a..0ef3e547 100644 --- a/crates/matrix/Cargo.toml +++ b/crates/matrix/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-matrix" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] anyhow.workspace = true diff --git a/crates/oauth2-types/Cargo.toml b/crates/oauth2-types/Cargo.toml index bc84262f..96d85653 100644 --- a/crates/oauth2-types/Cargo.toml +++ b/crates/oauth2-types/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "oauth2-types" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] http.workspace = true diff --git a/crates/oidc-client/Cargo.toml b/crates/oidc-client/Cargo.toml index 430ffd8a..2315d84b 100644 --- a/crates/oidc-client/Cargo.toml +++ b/crates/oidc-client/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-oidc-client" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [features] default = ["hyper", "keystore"] diff --git a/crates/policy/Cargo.toml b/crates/policy/Cargo.toml index 5f25991f..46d9d4c0 100644 --- a/crates/policy/Cargo.toml +++ b/crates/policy/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-policy" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] anyhow.workspace = true diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml index 8d628d9f..8f206e65 100644 --- a/crates/router/Cargo.toml +++ b/crates/router/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-router" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] axum = { version = "0.6.20", default-features = false } diff --git a/crates/spa/Cargo.toml b/crates/spa/Cargo.toml index f0c2da24..710c3990 100644 --- a/crates/spa/Cargo.toml +++ b/crates/spa/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-spa" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] serde.workspace = true diff --git a/crates/storage-pg/Cargo.toml b/crates/storage-pg/Cargo.toml index b39dca7b..897f03f9 100644 --- a/crates/storage-pg/Cargo.toml +++ b/crates/storage-pg/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-storage-pg" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] async-trait = "0.1.73" diff --git a/crates/storage/Cargo.toml b/crates/storage/Cargo.toml index 493f44aa..85b95880 100644 --- a/crates/storage/Cargo.toml +++ b/crates/storage/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-storage" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] async-trait = "0.1.73" diff --git a/crates/tasks/Cargo.toml b/crates/tasks/Cargo.toml index 762f0303..3d18711e 100644 --- a/crates/tasks/Cargo.toml +++ b/crates/tasks/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-tasks" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] anyhow.workspace = true diff --git a/crates/templates/Cargo.toml b/crates/templates/Cargo.toml index 6d4e0946..e7b271fb 100644 --- a/crates/templates/Cargo.toml +++ b/crates/templates/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-templates" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] tracing.workspace = true diff --git a/crates/tower/Cargo.toml b/crates/tower/Cargo.toml index 2db842bd..1250f8d9 100644 --- a/crates/tower/Cargo.toml +++ b/crates/tower/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "mas-tower" -version = "0.1.0" -authors = ["Quentin Gliech "] -edition = "2021" -license = "Apache-2.0" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] http.workspace = true