Skip to content

Commit 3cdf767

Browse files
server: IndexOf: Build the html manually instead of using the html crate
1 parent 6855374 commit 3cdf767

File tree

12 files changed

+31
-348
lines changed

12 files changed

+31
-348
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
"crates/html",
54
"crates/url",
65
"crates/mime",
76
"crates/http",

crates/html/Cargo.toml

Lines changed: 0 additions & 9 deletions
This file was deleted.

crates/html/README

Lines changed: 0 additions & 4 deletions
This file was deleted.

crates/html/benches/bench.rs

Lines changed: 0 additions & 35 deletions
This file was deleted.

crates/html/src/builder.rs

Lines changed: 0 additions & 59 deletions
This file was deleted.

crates/html/src/lib.rs

Lines changed: 0 additions & 63 deletions
This file was deleted.

crates/html/src/node.rs

Lines changed: 0 additions & 124 deletions
This file was deleted.

crates/html/tests/test.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

crates/http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "http-utils"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
edition = "2024"
55
description = "Http utils"
66
authors = ["Saúl Valdelvira <saul@saulv.es>"]

crates/http/src/error.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use core::fmt;
12
use std::{
23
borrow::Cow,
34
fmt::{Debug, Display},
@@ -106,4 +107,10 @@ impl From<String> for HttpError {
106107
}
107108
}
108109

110+
impl From<fmt::Error> for HttpError {
111+
fn from(value: fmt::Error) -> Self {
112+
Self(value.to_string().into())
113+
}
114+
}
115+
109116
impl std::error::Error for HttpError {}

0 commit comments

Comments
 (0)