Skip to content

Commit

Permalink
Cargo.toml: update
Browse files Browse the repository at this point in the history
  • Loading branch information
niklak committed Oct 1, 2024
1 parent 392a341 commit 08b0511
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.4.0] - 2024-10-01

### Changed
- Update dependencies.
- Refactor code due to major changes in html5ever 0.29.0


## [0.3.6] - 2024-07-19

### Changed
Expand Down
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ html5ever = "0.29.0"
selectors = "0.25.0"
cssparser = "0.31.2"
tendril = "0.4.3"
markup5ever = "0.14.0"
rustc-hash = "2.0.0"
hashbrown = {version = "0.14.5", default-features = false, features = ["allocator-api2", "inline-more"], optional = true}

[dev-dependencies]
regex = "1.10.5"
regex = "1.11.0"
lazy_static = "1.5.0"
readability = {version = "0.3.0", default-features = false}
url = "2.5.2"
ureq = "2.10.0"
ureq = "2.10.1"

[features]
hashbrown = ["dep:hashbrown"]
8 changes: 4 additions & 4 deletions src/dom_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use std::io;
use html5ever::serialize;
use html5ever::serialize::SerializeOpts;
use html5ever::LocalName;
use markup5ever::serialize::TraversalScope;
use markup5ever::serialize::TraversalScope::{ChildrenOnly, IncludeNode};
use markup5ever::serialize::{Serialize, Serializer};
use markup5ever::{namespace_url, ns, Attribute, QualName};
use html5ever::serialize::TraversalScope;
use html5ever::serialize::TraversalScope::{ChildrenOnly, IncludeNode};
use html5ever::serialize::{Serialize, Serializer};
use html5ever::{namespace_url, ns, Attribute, QualName};
use tendril::StrTendril;

use crate::entities::{HashSetFx, NodeId, NodeIdMap};
Expand Down
2 changes: 1 addition & 1 deletion src/element.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::ops::Deref;

use markup5ever::{local_name, namespace_url, ns};
use html5ever::{local_name, namespace_url, ns};
use selectors::attr::{AttrSelectorOperation, CaseSensitivity, NamespaceConstraint};
use selectors::context::MatchingContext;
use selectors::matching::{matches_selector_list, ElementSelectorFlags};
Expand Down
2 changes: 1 addition & 1 deletion src/entities.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use markup5ever::QualName;
use html5ever::QualName;

/// Node ID.
#[derive(Copy, Debug, Clone, Eq, PartialEq, Hash)]
Expand Down
2 changes: 1 addition & 1 deletion src/manipulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use html5ever::{
tree_builder::{NoQuirks, TreeBuilderOpts},
ParseOpts,
};
use markup5ever::{local_name, namespace_url, ns};
use html5ever::{local_name, namespace_url, ns};
use tendril::StrTendril;
use tendril::TendrilSink;

Expand Down
2 changes: 1 addition & 1 deletion tests/html-dom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use html5ever::serialize;
use html5ever::serialize::{SerializeOpts, TraversalScope};
use html5ever::QualName;
use html5ever::{parse_document, parse_fragment};
use markup5ever::{local_name, namespace_url, ns};
use html5ever::{local_name, namespace_url, ns};
use tendril::SliceExt;
use tendril::StrTendril;
use tendril::TendrilSink;
Expand Down

0 comments on commit 08b0511

Please sign in to comment.