Skip to content

Commit 93a3a20

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

File tree

11 files changed

+30
-347
lines changed

11 files changed

+30
-347
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/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 {}

crates/server/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "http-srv"
33
description = "Http Server"
44
authors = ["Saúl Valdelvira <saul@saulv.es>"]
5-
version = "0.6.1"
5+
version = "0.7.0"
66
edition = "2024"
77
license = "GPL-3.0-only"
88
readme = "README"
@@ -17,7 +17,6 @@ jsonrs = { package = "jsonrs", version = ">=0.1.4", git = "https://github.com/sa
1717
delay_init = { package = "delay_init" , version = ">=0.2.0", git = "https://github.com/saulvaldelvira/delay-init" }
1818
base64 = { package = "rb64", version = ">=0.1.0", git = "https://github.com/saulvaldelvira/rb64" }
1919
url = { package = "url-utils", version = ">=0.1.0", path = "../url" }
20-
html = { package = "rhtml", version = ">=0.1.0", path = "../html" }
2120

2221
[features]
2322
default = ["full"]

0 commit comments

Comments
 (0)