Skip to content
Open
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
199 changes: 185 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ pest = "2.9.0"
pest_derive = "2.9.0"
tokio = { version = "1.53.1", optional = true }
tokio-util = { version = "0.7.19", optional = true, features = ["codec"] }
tokio-stream = { version = "0.1.19", optional = true }
re-delimiter-codec = { version = "0.1.0", optional = true }
regex = { version = "1.13.1", optional = true }
futures-util = { version = "0.3.34", optional = true }
chardetng = { version = "1.0.0", optional = true }
encoding_rs = { version = "0.8.41", features = ["std"], optional = true }


[features]
default = [ ]
async-streaming = [ "dep:tokio-util", "dep:tokio", "dep:tokio-stream" ]
async-streaming = [ "dep:tokio-util", "dep:tokio", "dep:futures-util", "dep:re-delimiter-codec", "dep:regex", "dep:chardetng", "dep:encoding_rs" ]

[dev-dependencies]
tokio = { version = "1.53.1", features = ["fs", "macros", "rt" ] }
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Minimum supported rust version is 1.97.1
## Dependencies
This crate is built on:
- the [Pest parser](https://crates.io/crates/pest) crate
- [tokio](https://crates.io/crates/tokio), [tokio-util](https://crates.io/crates/tokio-util) and [tokio-stream](https://crates.io/crates/tokio-stream) for the async features
- mixed encoding detection and conversion is achieved through [chardetng](https://crates.io/crates/chardetng) and [encoding_rs](https://crates.io/crates/encoding_rs)
- [tokio](https://crates.io/crates/tokio), [tokio-util](https://crates.io/crates/tokio-util) and [futures-util](https://crates.io/crates/futures-util) for the async features

## Examples / How to hold it correctly 🔨
You can find some code examples in the integration tests:
Expand Down
Loading