Skip to content

Commit

Permalink
Merge pull request #51 from bgpkit/flate2-rust-backend
Browse files Browse the repository at this point in the history
switch flate2 back to rust backend
  • Loading branch information
digizeph authored Mar 20, 2024
2 parents 8aee543 + e3f1c35 commit 2197d8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ required-features = ["cli"]

[dependencies]
# remote
reqwest = { version = "0.11", default-features = false, features = ["blocking"], optional = true }
reqwest = { version = "0.12", default-features = false, features = ["blocking"], optional = true }

# compression
flate2 = { version = "1", default-features = false, features = ["zlib-ng"], optional = true }
flate2 = { version = "1", optional = true }
bzip2 = { version = "0.4.4", optional = true }
lz4 = { version = "1.24", optional = true }
xz2 = { version = "0.1", optional = true }
Expand Down
12 changes: 0 additions & 12 deletions tests/oneio_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use oneio;
use std::collections::HashMap;
use std::io::Write;

const TEST_TEXT: &str = "OneIO test file.
Expand Down Expand Up @@ -100,17 +99,6 @@ fn test_reader_remote() {
test_read("https://spaces.bgpkit.org/oneio/test_data.txt.xz");
}

#[test]
fn test_reader_remote_with_header() {
let mut reader = oneio::get_remote_reader(
"https://bgp-datasets.radar-cfdata-org.workers.dev/caida/as2org/20050801.as-org2info.jsonl.gz",
HashMap::from([("X-Custom-Auth-Key".to_string(), "vDe94ID5qAHC5YMtHdHexoyk7".to_string())])
).unwrap();

let mut text = "".to_string();
reader.read_to_string(&mut text).unwrap();
}

#[test]
fn test_writer() {
test_write("tests/test_write_data.txt", "tests/test_data.txt");
Expand Down

0 comments on commit 2197d8e

Please sign in to comment.