use workspace-level dependencies

This commit is contained in:
Eugene Pankov 2022-06-26 22:11:01 +02:00
parent 60a7c08fb1
commit 0d9af48489
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
13 changed files with 203 additions and 149 deletions

View file

@ -3,10 +3,6 @@ current_version = 0.2.5
commit = True commit = True
tag = True tag = True
[bumpversion:file:warpgate/Cargo.toml] [bumpversion:file:Cargo.toml]
search = version = "{current_version}"
replace = version = "{new_version}"
[bumpversion:file:warpgate-protocol-http/Cargo.toml]
search = version = "{current_version}" search = version = "{current_version}"
replace = version = "{new_version}" replace = version = "{new_version}"

10
Cargo.lock generated
View file

@ -4194,7 +4194,7 @@ dependencies = [
[[package]] [[package]]
name = "warpgate-common" name = "warpgate-common"
version = "0.1.0" version = "0.2.5"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"argon2", "argon2",
@ -4228,7 +4228,7 @@ dependencies = [
[[package]] [[package]]
name = "warpgate-db-entities" name = "warpgate-db-entities"
version = "0.1.0" version = "0.2.5"
dependencies = [ dependencies = [
"chrono", "chrono",
"poem-openapi", "poem-openapi",
@ -4240,7 +4240,7 @@ dependencies = [
[[package]] [[package]]
name = "warpgate-db-migrations" name = "warpgate-db-migrations"
version = "0.1.0" version = "0.2.5"
dependencies = [ dependencies = [
"async-std", "async-std",
"chrono", "chrono",
@ -4279,7 +4279,7 @@ dependencies = [
[[package]] [[package]]
name = "warpgate-protocol-ssh" name = "warpgate-protocol-ssh"
version = "0.1.0" version = "0.2.5"
dependencies = [ dependencies = [
"ansi_term", "ansi_term",
"anyhow", "anyhow",
@ -4302,7 +4302,7 @@ dependencies = [
[[package]] [[package]]
name = "warpgate-web" name = "warpgate-web"
version = "0.1.0" version = "0.2.5"
dependencies = [ dependencies = [
"rust-embed", "rust-embed",
"serde", "serde",

View file

@ -1,4 +1,7 @@
cargo-features = ["workspace-inheritance"]
[workspace] [workspace]
default-members = ["warpgate"]
members = [ members = [
"warpgate", "warpgate",
"warpgate-admin", "warpgate-admin",
@ -9,7 +12,55 @@ members = [
"warpgate-protocol-ssh", "warpgate-protocol-ssh",
"warpgate-web", "warpgate-web",
] ]
default-members = ["warpgate"]
[workspace.package]
edition = "2021"
license = "Apache-2.0"
version = "0.2.5"
[workspace.dependencies]
anyhow = { version = "1.0", features = ["backtrace", "std"] }
async-trait = "0.1"
chrono = { version = "0.4", features = ["serde"] }
bytes = "1.1"
data-encoding = "2.3"
tracing = "0.1"
lazy_static = "1.4"
dialoguer = "0.10"
futures = "0.3"
poem = { version = "^1.3.30", features = [
"cookie",
"session",
"anyhow",
"websocket",
"rustls",
"websocket",
"sse",
"embed",
] }
poem-openapi = { version = "^1.3.30", features = [
"swagger-ui",
"chrono",
"uuid",
"static-files",
] }
russh = { version = "0.34.0-beta.5", features = ["openssl"] }
russh-keys = { version = "0.22.0-beta.2", features = ["openssl"] }
rust-embed = "6.3"
time = "0.3"
tokio = { version = "1.19", features = ["tracing", "signal", "macros"] }
sea-orm = { version = "^0.8", features = [
"sqlx-sqlite",
"runtime-tokio-native-tls",
"macros",
"with-chrono",
"with-uuid",
"with-json",
], default-features = false }
serde = "1.0"
thiserror = "1.0"
uuid = { version = "0.8", features = ["v4", "serde"] }
serde_json = "1.0"
[profile.release] [profile.release]
lto = true lto = true

View file

@ -111,22 +111,11 @@ exceptions = [
# Some crates don't have (easily) machine readable licensing information, # Some crates don't have (easily) machine readable licensing information,
# adding a clarification entry for it allows you to manually specify the # adding a clarification entry for it allows you to manually specify the
# licensing information # licensing information
#[[licenses.clarify]] [[licenses.clarify]]
# The name of the crate the clarification applies to name = "ring"
#name = "ring" version = "*"
# The optional version constraint for the crate expression = "MIT AND ISC AND OpenSSL"
#version = "*" license-files = []
# The SPDX expression for the license requirements of the crate
#expression = "MIT AND ISC AND OpenSSL"
# One or more files in the crate's source used as the "source of truth" for
# the license expression. If the contents match, the clarification will be used
# when running the license check, otherwise the clarification will be ignored
# and the crate will be checked normally, which may produce warnings or errors
# depending on the rest of your configuration
#license-files = [
# Each entry is a crate relative path, and the (opaque) hash of its contents
#{ path = "LICENSE", hash = 0xbd0eed23 }
#]
[licenses.private] [licenses.private]
# If true, ignores workspace crates that aren't published, or are only # If true, ignores workspace crates that aren't published, or are only

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "nightly-2022-03-14" channel = "nightly-2022-05-30"

View file

@ -1,29 +1,31 @@
cargo-features = ["workspace-inheritance"]
[package] [package]
edition = "2021"
license = "Apache-2.0"
name = "warpgate-admin" name = "warpgate-admin"
version = "0.2.5" edition.workspace = true
license.workspace = true
version.workspace = true
[dependencies] [dependencies]
anyhow = {version = "1.0", features = ["std"]} anyhow.workspace = true
async-trait = "0.1" async-trait.workspace = true
bytes = "1.1" bytes.workspace = true
chrono = "0.4" chrono.workspace = true
futures = "0.3" futures.workspace = true
hex = "0.4" hex = "0.4"
mime_guess = {version = "2.0", default_features = false} mime_guess = { version = "2.0", default_features = false }
poem = {version = "^1.3.30", features = ["cookie", "session", "anyhow", "websocket"]} poem.workspace = true
poem-openapi = {version = "^1.3.30", features = ["swagger-ui", "chrono", "uuid", "static-files"]} poem-openapi.workspace = true
russh-keys = {version = "0.22.0-beta.2", features = ["openssl"]} russh-keys.workspace = true
rust-embed = "6.3" rust-embed.workspace = true
sea-orm = {version = "^0.8", features = ["sqlx-sqlite", "runtime-tokio-native-tls", "macros"], default-features = false} sea-orm.workspace = true
serde = "1.0" serde.workspace = true
serde_json = "1.0" serde_json.workspace = true
thiserror = "1.0" thiserror.workspace = true
tokio = {version = "1.19", features = ["tracing"]} tokio.workspace = true
tracing = "0.1" tracing.workspace = true
uuid = {version = "0.8", features = ["v4", "serde"]} uuid.workspace = true
warpgate-common = {version = "*", path = "../warpgate-common"} warpgate-common = { version = "*", path = "../warpgate-common" }
warpgate-db-entities = {version = "*", path = "../warpgate-db-entities"} warpgate-db-entities = { version = "*", path = "../warpgate-db-entities" }
warpgate-protocol-ssh = {version = "*", path = "../warpgate-protocol-ssh"} warpgate-protocol-ssh = { version = "*", path = "../warpgate-protocol-ssh" }
warpgate-web = {version = "*", path = "../warpgate-web"} warpgate-web = { version = "*", path = "../warpgate-web" }

View file

@ -1,35 +1,37 @@
cargo-features = ["workspace-inheritance"]
[package] [package]
edition = "2021"
license = "Apache-2.0"
name = "warpgate-common" name = "warpgate-common"
version = "0.1.0" edition.workspace = true
license.workspace = true
version.workspace = true
[dependencies] [dependencies]
anyhow = "1.0" anyhow.workspace = true
argon2 = "0.4" argon2 = "0.4"
async-trait = "0.1" async-trait.workspace = true
bytes = "1.1" bytes.workspace = true
chrono = {version = "0.4", features = ["serde"]} chrono.workspace = true
data-encoding = "2.3" data-encoding.workspace = true
humantime-serde = "1.1" humantime-serde = "1.1"
lazy_static = "1.4" lazy_static.workspace = true
once_cell = "1.10" once_cell = "1.10"
packet = "0.1" packet = "0.1"
password-hash = "0.4" password-hash = "0.4"
poem-openapi = {version = "^1.3.30", features = ["swagger-ui", "chrono", "uuid", "static-files"]} poem-openapi.workspace = true
rand = "0.8" rand = "0.8"
rand_chacha = "0.3" rand_chacha = "0.3"
rand_core = {version = "0.6", features = ["std"]} rand_core = {version = "0.6", features = ["std"]}
sea-orm = {version = "^0.8", features = ["sqlx-sqlite", "runtime-tokio-native-tls", "macros"], default-features = false} sea-orm.workspace = true
serde = "1.0" serde.workspace = true
serde_json = "1.0" serde_json.workspace = true
thiserror = "1.0" thiserror.workspace = true
tokio = {version = "1.19", features = ["tracing"]} tokio.workspace = true
totp-rs = {version = "2.0", features = ["otpauth"]} totp-rs = {version = "2.0", features = ["otpauth"]}
tracing = "0.1" tracing.workspace = true
tracing-core = "0.1" tracing-core = "0.1"
tracing-subscriber = "0.3" tracing-subscriber = "0.3"
url = "2.2" url = "2.2"
uuid = {version = "0.8", features = ["v4", "serde"]} uuid.workspace = true
warpgate-db-entities = {version = "*", path = "../warpgate-db-entities"} warpgate-db-entities = {version = "*", path = "../warpgate-db-entities"}
warpgate-db-migrations = {version = "*", path = "../warpgate-db-migrations"} warpgate-db-migrations = {version = "*", path = "../warpgate-db-migrations"}

View file

@ -1,13 +1,15 @@
cargo-features = ["workspace-inheritance"]
[package] [package]
edition = "2021"
license = "Apache-2.0"
name = "warpgate-db-entities" name = "warpgate-db-entities"
version = "0.1.0" edition.workspace = true
license.workspace = true
version.workspace = true
[dependencies] [dependencies]
chrono = {version = "0.4", features = ["serde"]} chrono.workspace = true
poem-openapi = {version = "^1.3.30", features = ["chrono", "uuid"]} poem-openapi.workspace = true
sea-orm = {version = "^0.8", features = ["macros", "with-chrono", "with-uuid", "with-json"], default-features = false} sea-orm.workspace = true
serde = "1.0" serde.workspace = true
serde_json = "1.0" serde_json.workspace = true
uuid = {version = "0.8", features = ["v4", "serde"]} uuid.workspace = true

View file

@ -1,15 +1,16 @@
cargo-features = ["workspace-inheritance"]
[package] [package]
edition = "2021"
license = "Apache-2.0"
name = "warpgate-db-migrations" name = "warpgate-db-migrations"
publish = false edition.workspace = true
version = "0.1.0" license.workspace = true
version.workspace = true
[lib] [lib]
[dependencies] [dependencies]
async-std = "^1.11" async-std = "^1.11"
chrono = "0.4" chrono.workspace = true
sea-orm = {version = "^0.8", features = ["sqlx-sqlite", "runtime-tokio-native-tls", "macros"], default-features = false} sea-orm.workspace = true
sea-orm-migration = {version = "^0.8", default-features = false} sea-orm-migration = {version = "^0.8", default-features = false}
uuid = {version = "0.8", features = ["v4", "serde"]} uuid.workspace = true

View file

@ -1,29 +1,31 @@
cargo-features = ["workspace-inheritance"]
[package] [package]
edition = "2021"
license = "Apache-2.0"
name = "warpgate-protocol-http" name = "warpgate-protocol-http"
version = "0.2.5" edition.workspace = true
license.workspace = true
version.workspace = true
[dependencies] [dependencies]
anyhow = "1.0" anyhow.workspace = true
async-trait = "0.1" async-trait.workspace = true
cookie = "0.16" cookie = "0.16"
data-encoding = "2.3" data-encoding.workspace = true
delegate = "0.6" delegate = "0.6"
futures = "0.3" futures.workspace = true
http = "0.2" http = "0.2"
lazy_static = "1.4" lazy_static.workspace = true
poem = {version = "^1.3.30", features = ["cookie", "session", "anyhow", "rustls", "websocket", "sse", "embed"]} poem.workspace = true
poem-openapi = {version = "^1.3.30", features = ["swagger-ui"]} poem-openapi.workspace = true
reqwest = {version = "0.11", features = ["rustls-tls-native-roots", "stream"]} reqwest = {version = "0.11", features = ["rustls-tls-native-roots", "stream"]}
serde = "1.0" serde.workspace = true
serde_json = "1.0" serde_json.workspace = true
tokio = {version = "1.18", features = ["tracing", "signal"]} tokio.workspace = true
tokio-tungstenite = {version = "0.17", features = ["rustls-tls-native-roots"]} tokio-tungstenite = {version = "0.17", features = ["rustls-tls-native-roots"]}
tracing = "0.1" tracing.workspace = true
warpgate-admin = {version = "*", path = "../warpgate-admin"} warpgate-admin = {version = "*", path = "../warpgate-admin"}
warpgate-common = {version = "*", path = "../warpgate-common"} warpgate-common = {version = "*", path = "../warpgate-common"}
warpgate-db-entities = {version = "*", path = "../warpgate-db-entities"} warpgate-db-entities = {version = "*", path = "../warpgate-db-entities"}
warpgate-web = {version = "*", path = "../warpgate-web"} warpgate-web = {version = "*", path = "../warpgate-web"}
percent-encoding = "2.1" percent-encoding = "2.1"
uuid = {version = "0.8", features = ["v4"]} uuid.workspace = true

View file

@ -1,24 +1,26 @@
cargo-features = ["workspace-inheritance"]
[package] [package]
edition = "2021"
license = "Apache-2.0"
name = "warpgate-protocol-ssh" name = "warpgate-protocol-ssh"
version = "0.1.0" edition.workspace = true
license.workspace = true
version.workspace = true
[dependencies] [dependencies]
ansi_term = "0.12" ansi_term = "0.12"
anyhow = "1.0" anyhow.workspace = true
async-trait = "0.1" async-trait.workspace = true
bimap = "0.6" bimap = "0.6"
bytes = "1.1" bytes.workspace = true
dialoguer = "0.10" dialoguer.workspace = true
futures = "0.3" futures.workspace = true
russh = {version = "0.34.0-beta.5", features = ["openssl"]} russh.workspace = true
russh-keys = {version = "0.22.0-beta.2", features = ["openssl"]} russh-keys.workspace = true
sea-orm = {version = "^0.8", features = ["runtime-tokio-native-tls"], default-features = false} sea-orm.workspace = true
thiserror = "1.0" thiserror.workspace = true
time = "0.3" time.workspace = true
tokio = {version = "1.19", features = ["tracing", "signal"]} tokio.workspace = true
tracing = "0.1" tracing.workspace = true
uuid = {version = "0.8", features = ["v4"]} uuid.workspace = true
warpgate-common = {version = "*", path = "../warpgate-common"} warpgate-common = { version = "*", path = "../warpgate-common" }
warpgate-db-entities = {version = "*", path = "../warpgate-db-entities"} warpgate-db-entities = { version = "*", path = "../warpgate-db-entities" }

View file

@ -1,11 +1,13 @@
cargo-features = ["workspace-inheritance"]
[package] [package]
edition = "2021"
license = "Apache-2.0"
name = "warpgate-web" name = "warpgate-web"
version = "0.1.0" edition.workspace = true
license.workspace = true
version.workspace = true
[dependencies] [dependencies]
rust-embed = "6.3" rust-embed.workspace = true
serde = "1.0" serde.workspace = true
serde_json = "1.0" serde_json.workspace = true
thiserror = "1.0" thiserror.workspace = true

View file

@ -1,36 +1,41 @@
cargo-features = ["workspace-inheritance"]
[package] [package]
edition = "2021"
license = "Apache-2.0"
name = "warpgate" name = "warpgate"
version = "0.2.5" edition.workspace = true
license.workspace = true
version.workspace = true
[dependencies] [dependencies]
ansi_term = "0.12" ansi_term = "0.12"
anyhow = {version = "1.0", features = ["backtrace"]} anyhow.workspace = true
async-trait = "0.1" async-trait.workspace = true
atty = "0.2" atty = "0.2"
bytes = "1.1" bytes.workspace = true
clap = {version = "3.2", features = ["derive"]} clap = { version = "3.2", features = ["derive"] }
config = {version = "0.13", features = ["yaml"], default_features = false} config = { version = "0.13", features = ["yaml"], default_features = false }
console = {version = "0.15", default_features = false} console = { version = "0.15", default_features = false }
console-subscriber = {version = "0.1", optional = true} console-subscriber = { version = "0.1", optional = true }
data-encoding = "2.3" data-encoding.workspace = true
dhat = {version = "0.3", optional = true} dhat = { version = "0.3", optional = true }
dialoguer = "0.10" dialoguer.workspace = true
futures = "0.3" futures.workspace = true
notify = "^5.0.0-beta.1" notify = "^5.0.0-beta.1"
openssl = {version = "0.10", features = ["vendored"]}# Embed OpenSSL openssl = { version = "0.10", features = ["vendored"] } # Embed OpenSSL
qrcode = "0.12" qrcode = "0.12"
rcgen = {version = "0.9", features = ["zeroize"]} rcgen = { version = "0.9", features = ["zeroize"] }
serde_yaml = "0.8.23" serde_yaml = "0.8.23"
time = "0.3" time.workspace = true
tokio = {version = "1.19", features = ["tracing", "signal", "macros"]} tokio.workspace = true
tracing = "0.1" tracing.workspace = true
tracing-subscriber = {version = "0.3", features = ["env-filter", "local-time"]} tracing-subscriber = { version = "0.3", features = [
warpgate-admin = {version = "*", path = "../warpgate-admin"} "env-filter",
warpgate-common = {version = "*", path = "../warpgate-common"} "local-time",
warpgate-protocol-http = {version = "*", path = "../warpgate-protocol-http"} ] }
warpgate-protocol-ssh = {version = "*", path = "../warpgate-protocol-ssh"} warpgate-admin = { version = "*", path = "../warpgate-admin" }
warpgate-common = { version = "*", path = "../warpgate-common" }
warpgate-protocol-http = { version = "*", path = "../warpgate-protocol-http" }
warpgate-protocol-ssh = { version = "*", path = "../warpgate-protocol-ssh" }
[target.'cfg(target_os = "linux")'.dependencies] [target.'cfg(target_os = "linux")'.dependencies]
sd-notify = "0.4" sd-notify = "0.4"