fix: fix feature option in rpxy-bin

This commit is contained in:
Jun Kurihara 2023-08-16 23:16:27 +09:00
commit a0d9c54b8f
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
2 changed files with 1 additions and 3 deletions

View file

@ -12,10 +12,9 @@ publish = false
# 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 = ["http3-quinn", "cache"] default = ["http3-quinn"]
http3-quinn = ["rpxy-lib/http3-quinn"] http3-quinn = ["rpxy-lib/http3-quinn"]
http3-s2n = ["rpxy-lib/http3-s2n"] http3-s2n = ["rpxy-lib/http3-s2n"]
cache = []
[dependencies] [dependencies]
rpxy-lib = { path = "../rpxy-lib/", default-features = false, features = [ rpxy-lib = { path = "../rpxy-lib/", default-features = false, features = [

View file

@ -32,7 +32,6 @@ pub struct Http3Option {
pub max_idle_timeout: Option<u64>, pub max_idle_timeout: Option<u64>,
} }
#[cfg(feature = "cache")]
#[derive(Deserialize, Debug, Default, PartialEq, Eq, Clone)] #[derive(Deserialize, Debug, Default, PartialEq, Eq, Clone)]
pub struct CacheOption { pub struct CacheOption {
pub cache_dir: Option<String>, pub cache_dir: Option<String>,