diff options
| author | Fuwn <[email protected]> | 2022-03-31 07:13:32 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-31 07:13:32 +0000 |
| commit | c76dedb2534cf313398aef2abb38b28444f84474 (patch) | |
| tree | b72f769c643ea2758f37a60402b38fdb92b74a5a | |
| parent | feat(cargo): bump version (diff) | |
| download | windmark-c76dedb2534cf313398aef2abb38b28444f84474.tar.xz windmark-c76dedb2534cf313398aef2abb38b28444f84474.zip | |
fix(router): conditional feature args
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | src/lib.rs | 6 |
3 files changed, 7 insertions, 5 deletions
@@ -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" @@ -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 @@ -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, ); } |