aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-31 07:13:32 +0000
committerFuwn <[email protected]>2022-03-31 07:13:32 +0000
commitc76dedb2534cf313398aef2abb38b28444f84474 (patch)
treeb72f769c643ea2758f37a60402b38fdb92b74a5a
parentfeat(cargo): bump version (diff)
downloadwindmark-c76dedb2534cf313398aef2abb38b28444f84474.tar.xz
windmark-c76dedb2534cf313398aef2abb38b28444f84474.zip
fix(router): conditional feature args
-rw-r--r--Cargo.toml2
-rw-r--r--README.md4
-rw-r--r--src/lib.rs6
3 files changed, 7 insertions, 5 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cec0c61..318541b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
[package]
name = "windmark"
-version = "0.1.6"
+version = "0.1.7"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
description = "An elegant and highly performant async Gemini server framework"
diff --git a/README.md b/README.md
index 575fb82..df101f2 100644
--- a/README.md
+++ b/README.md
@@ -14,11 +14,11 @@ Windmark is an elegant and highly performant, async Gemini server framework.
# Cargo.toml
[dependencies]
-windmark = "0.1.6"
+windmark = "0.1.7"
tokio = { version = "0.2.4", features = ["full"] }
# If you would like to use the built-in logger (recommended)
-# windmark = { version = "0.1.6", features = ["logger"] }
+# windmark = { version = "0.1.7", features = ["logger"] }
```
### Implement a Windmark server
diff --git a/src/lib.rs b/src/lib.rs
index 2fb7e6d..e5e6977 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -32,11 +32,11 @@
//! # Cargo.toml
//!
//! [dependencies]
-//! windmark = "0.1.6"
+//! windmark = "0.1.7"
//! tokio = { version = "0.2.4", features = ["full"] }
//!
//! # If you would like to use the built-in logger (recommended)
-//! # windmark = { version = "0.1.6", features = ["logger"] }
+//! # windmark = { version = "0.1.7", features = ["logger"] }
//! ```
//!
//! ### Implement a Windmark server
@@ -370,6 +370,7 @@ impl Router {
&route.params,
),)),
&mut response_status,
+ #[cfg(not(feature = "auto-deduce-mime"))]
&mut response_mime_type,
)
};
@@ -380,6 +381,7 @@ impl Router {
.unwrap()
.call_mut((ErrorContext::new(stream.get_ref(), &url),)),
&mut response_status,
+ #[cfg(not(feature = "auto-deduce-mime"))]
&mut response_mime_type,
);
}