Skip to content

Update html5ever to 0.31.0 #2069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions collector/compile-benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ They mostly consist of real-world crates.
crate.
- **helloworld**: A trivial program. Gives a lower bound on compile time.
- **html5ever-0.26.0**: An HTML parser. Stresses macro parsing code.
- **html5ever-0.31.0**: An HTML parser. Stresses macro parsing code.
- **hyper-0.14.18**: A fairly large crate. Utilizes async/await, and used by
many Rust programs. The crate uses cargo features to enable large portions of its
structure and is built with `--features=client,http1,http2,server,stream`.
Expand Down
5 changes: 5 additions & 0 deletions collector/compile-benchmarks/REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ path = "html5ever-0.26.0/**"
SPDX-FileCopyrightText = "The html5ever Project Developers"
SPDX-License-Identifier = "MIT OR Apache-2.0"

[[annotations]]
path = "html5ever-0.31.0/**"
SPDX-FileCopyrightText = "The html5ever Project Developers"
SPDX-License-Identifier = "MIT OR Apache-2.0"

[[annotations]]
path = "hyper-0.14.18/**"
SPDX-FileCopyrightText = "hyper contributors"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"git": {
"sha1": "ce481196ff2e60eb536d9c022f4ca00bd5181f15"
},
"path_in_vcs": "html5ever"
}
12 changes: 12 additions & 0 deletions collector/compile-benchmarks/html5ever-0.31.0/0-println.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/util/str.rs b/src/util/str.rs
index 2c0ec3e2..a78ff669 100644
--- a/src/util/str.rs
+++ b/src/util/str.rs
@@ -10,6 +10,7 @@
use std::fmt;

pub(crate) fn to_escaped_string<T: fmt::Debug>(x: &T) -> String {
+ println!("testing");
// FIXME: don't allocate twice
let string = format!("{x:?}");
string.chars().flat_map(|c| c.escape_default()).collect()
Loading
Loading