Skip to content

Commit 81db3d9

Browse files
committed
Make several features non-default
Since we're in the 0.17 beta, we can make breaking API changes, such as making previously default features non-default. Leave `h1-server` on by default, since tide isn't an HTTP server without it. Disable all other optional features by default, and let the user opt into them as needed.
1 parent ea02080 commit 81db3d9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ features = ["docs"]
2424
rustdoc-args = ["--cfg", "feature=\"docs\""]
2525

2626
[features]
27-
default = ["h1-server", "cookies", "logger", "sessions"]
27+
default = ["h1-server"]
2828
cookies = ["http-types/cookies"]
2929
h1-server = ["async-h1"]
3030
logger = ["femme"]

src/log/middleware.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ use crate::{Middleware, Next, Request};
33

44
/// Log all incoming requests and responses.
55
///
6-
/// This middleware is enabled by default in Tide. In the case of
7-
/// nested applications, this middleware will only run once for each
8-
/// request.
6+
/// In the case of nested applications, this middleware will only run once for each request.
97
///
108
/// # Examples
119
///

0 commit comments

Comments
 (0)