Skip to content
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

update deps #22

Merged
merged 5 commits into from
Jan 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
8 changes: 8 additions & 0 deletions .deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[licenses]
allow = [
"Apache-2.0",
"MIT",
"Unicode-3.0",
"MPL-2.0",
"ISC"
]
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = ["*.html"]
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dom-content-extraction"
version = "0.3.5"
version = "0.3.6"

description = "Rust implementation of Content extraction via text density paper"
license = "MPL-2.0"
Expand Down Expand Up @@ -30,8 +30,8 @@ strip = true
panic = "abort"

[dependencies]
ego-tree = "0.9"
scraper = "0.21"
ego-tree = "0.10"
scraper = "0.22"
thiserror = "2"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions benches/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn read_file_content_from_zip(zip_path: &str, file_name: &str) -> Option<String>
result
}

fn benchmark_test_1_html_dom_content_extaction(c: &mut Criterion) {
fn benchmark_test_1_html_dom_content_extraction(c: &mut Criterion) {
let content = read_file("html/test_1.html").unwrap();
c.bench_function("test_1_dom_content_extraction", |b| {
b.iter(|| {
Expand Down Expand Up @@ -122,7 +122,7 @@ fn benchmark_node_text_extraction(c: &mut Criterion) {

criterion_group!(
benches,
benchmark_test_1_html_dom_content_extaction,
benchmark_test_1_html_dom_content_extraction,
benchmark_real_file_dom_content_extraction,
benchmark_real_file_density_tree_calculation,
benchmark_real_file_density_tree_calculation_and_sort,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ impl<'a> DensityTree {
}

impl std::fmt::Debug for DensityTree {
/// Format tree with identation
/// Format tree with indentation
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
fn pretty_print(
f: &mut std::fmt::Formatter<'_>,
Expand Down
Loading