Skip to content

Commit 33c6ce0

Browse files
authored
Merge branch 'main' into patch-state-request
2 parents b8ba6c9 + e79e4f6 commit 33c6ce0

30 files changed

+88
-98
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions-rs/cargo@v1
3232
with:
3333
command: check
34-
args: --all --bins --examples
34+
args: --all --bins --examples --features logger
3535

3636
- name: check avoid-dev-deps
3737
uses: actions-rs/cargo@v1
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions-rs/cargo@v1
4545
with:
4646
command: check
47-
args: --all --bins --examples --tests --features unstable
47+
args: --all --bins --examples --tests --features unstable,logger
4848

4949
- name: check no-default-features
5050
uses: actions-rs/cargo@v1
@@ -62,13 +62,13 @@ jobs:
6262
uses: actions-rs/cargo@v1
6363
with:
6464
command: test
65-
args: --all
65+
args: --all --features logger
6666

6767
- name: tests unstable
6868
uses: actions-rs/cargo@v1
6969
with:
7070
command: test
71-
args: --all --features unstable
71+
args: --all --features unstable,logger
7272

7373
check_fmt_and_docs:
7474
name: Checking fmt, clippy, and docs
@@ -82,7 +82,7 @@ jobs:
8282
rustc --version
8383
8484
- name: clippy
85-
run: cargo clippy --tests --examples -- -D warnings
85+
run: cargo clippy --tests --examples --features logger -- -D warnings
8686

8787
- name: fmt
8888
run: cargo fmt --all -- --check

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
2727
default = ["h1-server"]
2828
cookies = ["http-types/cookies"]
2929
h1-server = ["async-h1"]
30-
logger = ["femme"]
30+
logger = []
3131
docs = ["unstable"]
3232
sessions = ["async-session", "cookies"]
3333
sse = ["async-sse"]
@@ -39,7 +39,6 @@ async-session = { version = "3.0", optional = true }
3939
async-sse = { version = "5.1.0", optional = true }
4040
async-std = { version = "1.6.5", features = ["unstable"] }
4141
async-trait = "0.1.41"
42-
femme = { version = "2.1.1", optional = true }
4342
futures-util = "0.3.6"
4443
http-client = { version = "6.1.0", default-features = false }
4544
http-types = { version = "2.11.0", default-features = false, features = ["fs"] }
@@ -54,7 +53,9 @@ regex = "1.5.5"
5453
[dev-dependencies]
5554
async-std = { version = "1.6.5", features = ["unstable", "attributes"] }
5655
criterion = "0.3.3"
56+
femme = "2.1.1"
5757
juniper = "0.14.2"
58+
kv-log-macro = "1.0.7"
5859
lazy_static = "1.4.0"
5960
logtest = "2.0.0"
6061
portpicker = "0.1.0"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ team. Use at your own risk.</sup>
133133
### Auth
134134
* [tide-http-auth](https://github.com/chrisdickinson/tide-http-auth)
135135
* [tide-openidconnect](https://github.com/malyn/tide-openidconnect)
136-
* [tide-jwt](htps://github.com/nyxtom/tide-jwt)
136+
* [tide-jwt](https://github.com/nyxtom/tide-jwt)
137137

138138
### Testing
139139
* [tide-testing](https://github.com/jbr/tide-testing)
@@ -148,6 +148,7 @@ team. Use at your own risk.</sup>
148148
* [tide-compressed-sse](https://github.com/Yarn/tide_compressed_sse)
149149
* [tide-websockets](https://github.com/http-rs/tide-websockets)
150150
* [tide-csrf](https://github.com/malyn/tide-csrf)
151+
* [tide-flash](https://github.com/nyxtom/tide-flash)
151152

152153
### Session Stores
153154
* [async-redis-session](https://github.com/jbr/async-redis-session)

examples/catflap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#[async_std::main]
33
async fn main() -> Result<(), std::io::Error> {
44
use std::{env, net::TcpListener, os::unix::io::FromRawFd};
5-
tide::log::start();
5+
femme::start();
66
let mut app = tide::new();
77
app.with(tide::log::LogMiddleware::new());
88
app.at("/").get(|_| async { Ok(CHANGE_THIS_TEXT) });

examples/chunked.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use tide::Body;
22

33
#[async_std::main]
44
async fn main() -> Result<(), std::io::Error> {
5-
tide::log::start();
5+
femme::start();
66
let mut app = tide::new();
77
app.with(tide::log::LogMiddleware::new());
88
app.at("/").get(|_| async {

examples/concurrent_listeners.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use tide::Request;
22

33
#[async_std::main]
44
async fn main() -> Result<(), std::io::Error> {
5-
tide::log::start();
5+
femme::start();
66
let mut app = tide::new();
77
app.with(tide::log::LogMiddleware::new());
88

examples/cookies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async fn remove_cookie(_req: Request) -> tide::Result {
2121

2222
#[async_std::main]
2323
async fn main() -> Result<(), std::io::Error> {
24-
tide::log::start();
24+
femme::start();
2525
let mut app = tide::new();
2626
app.with(tide::log::LogMiddleware::new());
2727

examples/error_handling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use tide::{Body, Request, Response, Result, StatusCode};
55

66
#[async_std::main]
77
async fn main() -> Result<()> {
8-
tide::log::start();
8+
femme::start();
99
let mut app = tide::new();
1010
app.with(tide::log::LogMiddleware::new());
1111

examples/hello.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[async_std::main]
22
async fn main() -> Result<(), std::io::Error> {
3-
tide::log::start();
3+
femme::start();
44

55
let mut app = tide::new();
66
app.with(tide::log::LogMiddleware::new());

examples/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct Cat {
99

1010
#[async_std::main]
1111
async fn main() -> tide::Result<()> {
12-
tide::log::start();
12+
femme::start();
1313
let mut app = tide::new();
1414
app.with(tide::log::LogMiddleware::new());
1515

0 commit comments

Comments
 (0)