Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
01bc71ab86 | |||
cf98c93a89 | |||
d57d0c2db9 | |||
f2ad24655c |
1339
Cargo.lock
generated
1339
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
11
Cargo.toml
11
Cargo.toml
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rustocat"
|
name = "rustocat"
|
||||||
version = "0.1.12"
|
version = "0.1.13"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Socat in rust with many less features and a configuration file"
|
description = "Socat in rust with many less features and a configuration file"
|
||||||
license = "ISC"
|
license = "ISC"
|
||||||
@ -8,7 +8,7 @@ license = "ISC"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[features]
|
[features]
|
||||||
default = ["consul"]
|
default = ["consul"]
|
||||||
consul = []
|
consul = ["reqwest"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
@ -17,10 +17,13 @@ serde_json = "1"
|
|||||||
serde_yaml = "0.9"
|
serde_yaml = "0.9"
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
fern = "0.6"
|
fern = "0.7"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
async-trait = "0.1"
|
async-trait = "0.1"
|
||||||
reqwest = { version = "0.11", features = ["json", "rustls", "hyper-tls"], default-features = false }
|
reqwest = { version = "0.12", optional = true, features = [
|
||||||
|
"json",
|
||||||
|
"default-tls",
|
||||||
|
], default-features = false }
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
opt-level = 3 # Optimize for size.
|
opt-level = 3 # Optimize for size.
|
||||||
|
@ -15,8 +15,11 @@ pub struct Target {
|
|||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
|
#[cfg(feature = "consul")]
|
||||||
pub consul: Option<bool>,
|
pub consul: Option<bool>,
|
||||||
|
#[cfg(feature = "consul")]
|
||||||
pub consul_http_addr: Option<String>,
|
pub consul_http_addr: Option<String>,
|
||||||
|
#[cfg(feature = "consul")]
|
||||||
pub consul_http_token: Option<String>,
|
pub consul_http_token: Option<String>,
|
||||||
mappings: Vec<Target>,
|
mappings: Vec<Target>,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user