Update cargo manifest to use new dependency structure

This commit is contained in:
Filip Tibell 2023-05-06 10:45:17 +02:00
parent 3071a1154c
commit 3c204ee883
No known key found for this signature in database
4 changed files with 15 additions and 13 deletions

1
Cargo.lock generated
View file

@ -1103,6 +1103,7 @@ dependencies = [
"lune",
"once_cell",
"regex",
"reqwest",
"serde",
"serde_json",
"serde_yaml",

View file

@ -30,6 +30,18 @@ serde_json = { version = "1.0", features = ["preserve_order"] }
serde_yaml = "0.9"
toml = { version = "0.7", features = ["preserve_order"] }
# Using rustls instead of the default OpenSSL allows us to have much more portable binaries
#
# Notes:
#
# - Rustls does not yet compile on windows aarch64, so we use default tls there
# https://github.com/briansmith/ring/issues/1167
#
# - Cargo does not support per-target features, we have to add the feature in the build command itself
# https://github.com/rust-lang/cargo/issues/1197
# Check the `.justfile` or `.github/workflows/release.yaml` files for reference
reqwest = { version = "0.11", default-features = false }
# Profile for building the release binary, with the following options set:
#
# 1. Optimize for size

View file

@ -25,6 +25,7 @@ lune = { path = "../lib" }
console.workspace = true
futures-util.workspace = true
once_cell.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_yaml.workspace = true

View file

@ -26,6 +26,7 @@ console.workspace = true
futures-util.workspace = true
mlua.workspace = true
once_cell.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_yaml.workspace = true
@ -45,18 +46,5 @@ hyper = { version = "0.14", features = ["full"] }
hyper-tungstenite = { version = "0.9" }
tokio-tungstenite = { version = "0.18" }
# Using rustls instead of the default OpenSSL allows us to have much more portable binaries
#
# Notes:
#
# - Rustls does not yet compile on windows aarch64, so we use default tls there
# https://github.com/briansmith/ring/issues/1167
#
# - Cargo does not support per-target features, we have to add the feature in the build command itself
# https://github.com/rust-lang/cargo/issues/1197
[dependencies.reqwest]
version = "0.11"
default-features = false
[dev-dependencies]
anyhow = "1.0"