Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
feat: configured workspace crates and update crates
Browse files Browse the repository at this point in the history
  • Loading branch information
ralvescosta committed Feb 17, 2024
1 parent 857fd8a commit b2f58ba
Show file tree
Hide file tree
Showing 24 changed files with 597 additions and 499 deletions.
637 changes: 365 additions & 272 deletions Cargo.lock

Large diffs are not rendered by default.

20 changes: 15 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,27 @@ members = [
"messaging",
"rabbitmq",
"kafka",
"auth",
"health_readiness",
"http_components",
"health_readiness",
"health_http_server",
"http_server",
"tiny_server",
"logging",
"metrics",
"migrator",
"mqtt",
"otel",
"secrets_manager",
"sql_pool",
"traces",
]
"auth",
]

[workspace.dependencies]
thiserror = { version = "1.0.57" }
serde = { version = "1.0.196" }
serde_json = { version = "1.0.113" }
tokio = { version = "1.36.0" }
async-trait = { version = "0.1.77" }
tracing = { version = "0.1.40" }
opentelemetry = { git = "ssh://git@github.com/open-telemetry/opentelemetry-rust.git", rev = "v0.21.2" }
opentelemetry_sdk = { git = "ssh://git@github.com/open-telemetry/opentelemetry-rust.git", rev = "v0.21.2" }
tonic = { version = "0.11.0" }
16 changes: 8 additions & 8 deletions auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ edition = "2021"
[dependencies]
configs = { path = "../configs" }

serde = { version = "1.0.196", features = ["derive"] }
serde_json = { version = "1.0.112" }
tracing = { version = "0.1.40" }
async-trait = { version = "0.1.77" }
opentelemetry = { version = "0.21.0" }
alcoholic_jwt = { version = "4091.0.0 " }
tokio = { version = "1.35.1", features = ["sync"] }
reqwest = { version = "0.11.23", features = ["json"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tracing = { workspace = true }
async-trait = { workspace = true }
opentelemetry = { workspace = true }
tokio = { workspace = true, features = ["sync"] }
alcoholic_jwt = { version = "4091.0.0" }
reqwest = { version = "0.11.24", features = ["json"] }
9 changes: 0 additions & 9 deletions configs/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,4 @@ impl Environment {
pub fn is_prod(&self) -> bool {
self == &Environment::Prod
}

pub fn filename(&self) -> String {
match *self {
Environment::Local => ".env.local".into(),
Environment::Dev => ".env.develop".into(),
Environment::Staging => ".env.staging".into(),
Environment::Prod => ".env.prod".into(),
}
}
}
4 changes: 2 additions & 2 deletions configs_builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ configs = { path = "../configs" }
secrets-manager = { path = "../secrets_manager" }
logging = { path = "../logging" }

thiserror = { workspace = true }
tracing = { workspace = true }
dotenvy = { version = "0.15.7" }
base64 = { version = "0.21.7" }
tracing = { version = "0.1.40" }
thiserror = { version = "1.0.56" }
Loading

0 comments on commit b2f58ba

Please sign in to comment.