Skip to content

Commit

Permalink
Implement async reader
Browse files Browse the repository at this point in the history
  • Loading branch information
999eagle committed Jul 13, 2022
1 parent f9cdf27 commit 208d801
Show file tree
Hide file tree
Showing 3 changed files with 868 additions and 151 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ document-features = { version = "0.2", optional = true }
encoding_rs = { version = "0.8", optional = true }
serde = { version = "1.0", optional = true }
memchr = "2.5"
tokio = { version = "1.19", optional = true, default-features = false, features = ["io-util", "fs"] }
async-recursion = { version = "1.0", optional = true }

[dev-dependencies]
criterion = "0.3"
pretty_assertions = "1.2"
regex = "1"
serde = { version = "1.0", features = ["derive"] }
serde-value = "0.7"
tokio = { version = "1.19", default-features = false, features = ["macros", "rt-multi-thread"] }

[[bench]]
name = "bench"
Expand Down Expand Up @@ -94,6 +97,9 @@ serialize = ["serde"]
## Enables support for recognizing all [HTML 5 entities](https://dev.w3.org/html5/html-author/charref)
escape-html = []

## Enable support for asynchronous reading
async = ["tokio", "async-recursion"]

[package.metadata.docs.rs]
all-features = true

Expand Down
Loading

0 comments on commit 208d801

Please sign in to comment.