1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-07 17:03:01 +03:00

Prepare workspace to publish OIDC crates

This commit is contained in:
Quentin Gliech
2023-12-07 15:34:09 +01:00
parent bd42916309
commit 49963b26f8
27 changed files with 149 additions and 100 deletions

1
Cargo.lock generated
View File

@@ -3256,7 +3256,6 @@ dependencies = [
"bytes", "bytes",
"chrono", "chrono",
"form_urlencoded", "form_urlencoded",
"futures",
"futures-util", "futures-util",
"headers", "headers",
"http 0.2.11", "http 0.2.11",

View File

@@ -26,6 +26,36 @@ broken_intra_doc_links = "deny"
[workspace.dependencies] [workspace.dependencies]
# Workspace crates
# TODO: we need to automate the publishing of the workspace crates and version bumps
mas-axum-utils = { path = "./crates/axum-utils/", version = "=0.7.0" }
mas-cli = { path = "./crates/cli/", version = "=0.7.0" }
mas-config = { path = "./crates/config/", version = "=0.7.0" }
mas-data-model = { path = "./crates/data-model/", version = "=0.7.0" }
mas-email = { path = "./crates/email/", version = "=0.7.0" }
mas-graphql = { path = "./crates/graphql/", version = "=0.7.0" }
mas-handlers = { path = "./crates/handlers/", version = "=0.7.0" }
mas-http = { path = "./crates/http/", version = "=0.7.0" }
mas-i18n = { path = "./crates/i18n/", version = "=0.7.0" }
mas-i18n-scan = { path = "./crates/i18n-scan/", version = "=0.7.0" }
mas-iana = { path = "./crates/iana/", version = "=0.7.0" }
mas-iana-codegen = { path = "./crates/iana-codegen/", version = "=0.7.0" }
mas-jose = { path = "./crates/jose/", version = "=0.7.0" }
mas-keystore = { path = "./crates/keystore/", version = "=0.7.0" }
mas-listener = { path = "./crates/listener/", version = "=0.7.0" }
mas-matrix = { path = "./crates/matrix/", version = "=0.7.0" }
mas-matrix-synapse = { path = "./crates/matrix-synapse/", version = "=0.7.0" }
mas-oidc-client = { path = "./crates/oidc-client/", version = "=0.7.0" }
mas-policy = { path = "./crates/policy/", version = "=0.7.0" }
mas-router = { path = "./crates/router/", version = "=0.7.0" }
mas-spa = { path = "./crates/spa/", version = "=0.7.0" }
mas-storage = { path = "./crates/storage/", version = "=0.7.0" }
mas-storage-pg = { path = "./crates/storage-pg/", version = "=0.7.0" }
mas-tasks = { path = "./crates/tasks/", version = "=0.7.0" }
mas-templates = { path = "./crates/templates/", version = "=0.7.0" }
mas-tower = { path = "./crates/tower/", version = "=0.7.0" }
oauth2-types = { path = "./crates/oauth2-types/", version = "=0.7.0" }
# High-level error handling # High-level error handling
[workspace.dependencies.anyhow] [workspace.dependencies.anyhow]
version = "1.0.75" version = "1.0.75"

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -35,14 +36,14 @@ tracing.workspace = true
url.workspace = true url.workspace = true
ulid.workspace = true ulid.workspace = true
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
mas-http = { path = "../http", features = ["client"] } mas-http = { workspace = true, features = ["client"] }
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-jose = { path = "../jose" } mas-jose.workspace = true
mas-keystore = { path = "../keystore" } mas-keystore.workspace = true
mas-storage = { path = "../storage" } mas-storage.workspace = true
mas-templates = { path = "../templates" } mas-templates.workspace = true
[features] [features]
native-roots = ["mas-http/native-roots"] native-roots = ["mas-http/native-roots"]

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -51,27 +52,27 @@ sentry = { version = "0.31.8", default-features = false, features = ["backtrace"
sentry-tracing = "0.31.8" sentry-tracing = "0.31.8"
sentry-tower = { version = "0.31.8", features = ["http"] } sentry-tower = { version = "0.31.8", features = ["http"] }
mas-config = { path = "../config" } mas-config.workspace = true
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
mas-email = { path = "../email" } mas-email.workspace = true
mas-graphql = { path = "../graphql" } mas-graphql.workspace = true
mas-handlers = { path = "../handlers", default-features = false } mas-handlers = { workspace = true, default-features = false }
mas-http = { path = "../http", default-features = false, features = ["axum", "client"] } mas-http = { workspace = true, default-features = false, features = ["axum", "client"] }
mas-i18n = { path = "../i18n" } mas-i18n.workspace = true
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-keystore = { path = "../keystore" } mas-keystore.workspace = true
mas-listener = { path = "../listener" } mas-listener.workspace = true
mas-matrix = { path = "../matrix" } mas-matrix.workspace = true
mas-matrix-synapse = { path = "../matrix-synapse" } mas-matrix-synapse.workspace = true
mas-policy = { path = "../policy" } mas-policy.workspace = true
mas-router = { path = "../router" } mas-router.workspace = true
mas-spa = { path = "../spa" } mas-spa.workspace = true
mas-storage = { path = "../storage" } mas-storage.workspace = true
mas-storage-pg = { path = "../storage-pg" } mas-storage-pg.workspace = true
mas-tasks = { path = "../tasks" } mas-tasks.workspace = true
mas-templates = { path = "../templates" } mas-templates.workspace = true
mas-tower = { path = "../tower" } mas-tower.workspace = true
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
[features] [features]
default = ["webpki-roots", "policy-cache"] default = ["webpki-roots", "policy-cache"]

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -37,9 +38,9 @@ rand_chacha = "0.3.1"
indoc = "2.0.4" indoc = "2.0.4"
mas-jose = { path = "../jose" } mas-jose.workspace = true
mas-keystore = { path = "../keystore" } mas-keystore.workspace = true
mas-iana = { path = "../iana" } mas-iana.workspace = true
[features] [features]
docker = [] docker = []

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -20,6 +21,6 @@ ulid.workspace = true
rand.workspace = true rand.workspace = true
rand_chacha = "0.3.1" rand_chacha = "0.3.1"
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-jose = { path = "../jose" } mas-jose.workspace = true
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -16,7 +17,7 @@ tracing.workspace = true
thiserror.workspace = true thiserror.workspace = true
headers = "0.3.9" headers = "0.3.9"
mas-templates = { path = "../templates" } mas-templates.workspace = true
[dependencies.lettre] [dependencies.lettre]
version = "0.11.2" version = "0.11.2"

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -24,11 +25,11 @@ tower = { version = "0.4.13", features = ["util"] }
ulid.workspace = true ulid.workspace = true
url.workspace = true url.workspace = true
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
mas-matrix = { path = "../matrix" } mas-matrix.workspace = true
mas-policy = { path = "../policy" } mas-policy.workspace = true
mas-storage = { path = "../storage" } mas-storage.workspace = true
[[bin]] [[bin]]
name = "schema" name = "schema"

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -67,23 +68,23 @@ rand_chacha = "0.3.1"
headers = "0.3.9" headers = "0.3.9"
ulid.workspace = true ulid.workspace = true
mas-axum-utils = { path = "../axum-utils", default-features = false } mas-axum-utils = { workspace = true, default-features = false }
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
mas-graphql = { path = "../graphql" } mas-graphql.workspace = true
mas-http = { path = "../http", default-features = false } mas-http = { workspace = true, default-features = false }
mas-i18n = { path = "../i18n" } mas-i18n.workspace = true
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-jose = { path = "../jose" } mas-jose.workspace = true
mas-keystore = { path = "../keystore" } mas-keystore.workspace = true
mas-matrix = { path = "../matrix" } mas-matrix.workspace = true
mas-oidc-client = { path = "../oidc-client" } mas-oidc-client.workspace = true
mas-policy = { path = "../policy" } mas-policy.workspace = true
mas-router = { path = "../router" } mas-router.workspace = true
mas-spa = { path = "../spa" } mas-spa.workspace = true
mas-storage = { path = "../storage" } mas-storage.workspace = true
mas-storage-pg = { path = "../storage-pg" } mas-storage-pg.workspace = true
mas-templates = { path = "../templates" } mas-templates.workspace = true
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
[dev-dependencies] [dev-dependencies]
insta = "1.34.0" insta = "1.34.0"

View File

@@ -34,7 +34,7 @@ tracing.workspace = true
tracing-opentelemetry.workspace = true tracing-opentelemetry.workspace = true
webpki-roots = { version = "0.25.3", optional = true } webpki-roots = { version = "0.25.3", optional = true }
mas-tower = { path = "../tower" } mas-tower.workspace = true
[dev-dependencies] [dev-dependencies]
anyhow.workspace = true anyhow.workspace = true

View File

@@ -6,6 +6,7 @@ authors.workspace = true
edition.workspace = true edition.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -19,4 +20,4 @@ tracing-subscriber.workspace = true
tracing.workspace = true tracing.workspace = true
walkdir = "2.4.0" walkdir = "2.4.0"
mas-i18n = { path = "../i18n" } mas-i18n.workspace = true

View File

@@ -6,6 +6,7 @@ authors.workspace = true
edition.workspace = true edition.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -34,7 +35,7 @@ thiserror.workspace = true
tracing.workspace = true tracing.workspace = true
url.workspace = true url.workspace = true
mas-iana = { path = "../iana" } mas-iana.workspace = true
[dev-dependencies] [dev-dependencies]
insta = { version = "1.34.0" } insta = { version = "1.34.0" }

View File

@@ -31,8 +31,8 @@ generic-array = "0.14.7"
chacha20poly1305 = { version = "0.10.1", features = ["std"] } chacha20poly1305 = { version = "0.10.1", features = ["std"] }
base64ct = "1.6.0" base64ct = "1.6.0"
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-jose = { path = "../jose" } mas-jose.workspace = true
[dev-dependencies] [dev-dependencies]
insta = { version = "1.34.0", features = ["yaml"] } insta = { version = "1.34.0", features = ["yaml"] }

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -19,6 +20,6 @@ tower = { version = "0.4.13", features = ["util"] }
tracing.workspace = true tracing.workspace = true
url.workspace = true url.workspace = true
mas-axum-utils = { path = "../axum-utils" } mas-axum-utils.workspace = true
mas-http = { path = "../http" } mas-http.workspace = true
mas-matrix = { path = "../matrix" } mas-matrix.workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true

View File

@@ -23,8 +23,8 @@ sha2 = "0.10.8"
data-encoding = "2.5.0" data-encoding = "2.5.0"
thiserror.workspace = true thiserror.workspace = true
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-jose = { path = "../jose" } mas-jose.workspace = true
[dev-dependencies] [dev-dependencies]
assert_matches = "1.5.0" assert_matches = "1.5.0"

View File

@@ -27,7 +27,6 @@ base64ct = { version = "1.6.0", features = ["std"] }
bytes = "1.5.0" bytes = "1.5.0"
chrono.workspace = true chrono.workspace = true
form_urlencoded = "1.2.1" form_urlencoded = "1.2.1"
futures = "0.3.29"
futures-util = "0.3.29" futures-util = "0.3.29"
headers = "0.3.9" headers = "0.3.9"
http.workspace = true http.workspace = true
@@ -45,11 +44,11 @@ tower = { version = "0.4.13", features = ["full"] }
tracing.workspace = true tracing.workspace = true
url.workspace = true url.workspace = true
mas-http = { path = "../http" } mas-http.workspace = true
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-jose = { path = "../jose" } mas-jose.workspace = true
mas-keystore = { path = "../keystore", optional = true } mas-keystore = { workspace = true, optional = true }
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
# Default http service # Default http service
http-body = { version = "0.4.5", optional = true } http-body = { version = "0.4.5", optional = true }
@@ -71,6 +70,6 @@ optional = true
[dev-dependencies] [dev-dependencies]
assert_matches = "1.5.0" assert_matches = "1.5.0"
bitflags = "2.4.1" bitflags = "2.4.1"
mas-keystore = { path = "../keystore" } mas-keystore.workspace = true
rand_chacha = "0.3.1" rand_chacha = "0.3.1"
wiremock = "0.5.21" wiremock = "0.5.21"

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -21,8 +22,8 @@ tokio = { version = "1.34.0", features = ["io-util", "rt"] }
tracing.workspace = true tracing.workspace = true
wasmtime = { version = "15.0.0", default-features = false, features = ["async", "cranelift"] } wasmtime = { version = "15.0.0", default-features = false, features = ["async", "cranelift"] }
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
[dev-dependencies] [dev-dependencies]
tokio = { version = "1.34.0", features = ["fs", "rt", "macros"] } tokio = { version = "1.34.0", features = ["fs", "rt", "macros"] }

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -28,8 +29,8 @@ url.workspace = true
uuid = "1.6.1" uuid = "1.6.1"
ulid = { workspace = true, features = ["uuid"] } ulid = { workspace = true, features = ["uuid"] }
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
mas-storage = { path = "../storage" } mas-storage.workspace = true
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-jose = { path = "../jose" } mas-jose.workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -26,7 +27,7 @@ tracing-opentelemetry.workspace = true
url.workspace = true url.workspace = true
ulid.workspace = true ulid.workspace = true
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
mas-iana = { path = "../iana" } mas-iana.workspace = true
mas-jose = { path = "../jose" } mas-jose.workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -33,11 +34,11 @@ url.workspace = true
serde.workspace = true serde.workspace = true
serde_json.workspace = true serde_json.workspace = true
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
mas-email = { path = "../email" } mas-email.workspace = true
mas-i18n = { path = "../i18n" } mas-i18n.workspace = true
mas-matrix = { path = "../matrix" } mas-matrix.workspace = true
mas-storage = { path = "../storage" } mas-storage.workspace = true
mas-storage-pg = { path = "../storage-pg" } mas-storage-pg.workspace = true
mas-templates = { path = "../templates" } mas-templates.workspace = true
mas-tower = { path = "../tower" } mas-tower.workspace = true

View File

@@ -6,6 +6,7 @@ edition.workspace = true
license.workspace = true license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
publish = false
[lints] [lints]
workspace = true workspace = true
@@ -32,8 +33,8 @@ http.workspace = true
ulid.workspace = true ulid.workspace = true
rand.workspace = true rand.workspace = true
oauth2-types = { path = "../oauth2-types" } oauth2-types.workspace = true
mas-data-model = { path = "../data-model" } mas-data-model.workspace = true
mas-i18n = { path = "../i18n" } mas-i18n.workspace = true
mas-router = { path = "../router" } mas-router.workspace = true
mas-spa = { path = "../spa" } mas-spa.workspace = true