You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OneIO is a Rust library that provides a unified simple IO interface for reading and writing to and from data files from different sources and compressions.
8
+
OneIO is a Rust library that provides a unified IO interface for synchronously reading and writing
9
+
to and from data files from different sources and compressions.
9
10
10
11
### Usage and Feature Flags
11
12
12
13
Enable all compression algorithms and handle remote files (default)
13
14
14
15
```toml
15
-
oneio = "0.17"
16
+
oneio = "0.18"
16
17
```
17
18
18
19
Select from supported feature flags
19
20
20
21
```toml
21
-
oneio = { version = "0.17", default-features = false, features = ["remote", "gz"] }
22
+
oneio = { version = "0.18", default-features = false, features = ["remote", "gz"] }
22
23
```
23
24
24
25
Default flags include `lib-core` and `rustls`.
@@ -28,6 +29,8 @@ Default flags include `lib-core` and `rustls`.
28
29
`lib-core` core features include:
29
30
30
31
-`remote`: allow reading from remote files, including http(s) and ftp
32
+
-`http`: support reading from http(s) remote files using `reqwest` crate
33
+
-`ftp`: support reading from ftp remote files using `suppaftp` crate
31
34
-`compressions`: support all compression algorithms
32
35
-`gz`: support `gzip` files using `flate2` crate
33
36
-`bz`: support `bzip2` files using `bzip2` crate
@@ -57,7 +60,7 @@ Users can also manually opt-in to specific compression algorithms. For example,
57
60
and `bzip2` files:
58
61
59
62
```toml
60
-
oneio = { version = "0.17", default-features = false, features = ["gz", "bz"] }
63
+
oneio = { version = "0.18", default-features = false, features = ["gz", "bz"] }
61
64
```
62
65
63
66
### Use `oneio` commandline tool
@@ -165,7 +168,7 @@ assert_eq!(lines[1].as_str(), "This is a test.");
165
168
166
169
### Use OneIO Writer as a Library
167
170
168
-
[get_writer] returns a generic writer that implements [Write], and handles decompression from the following types:
171
+
[get_writer] returns a generic writer that implements [std::io::Write], and handles decompression from the following types:
Copy file name to clipboardExpand all lines: src/lib.rs
+11-14Lines changed: 11 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,19 @@
1
1
/*!
2
-
OneIO is a Rust library that provides a unified simple IO interface for reading and writing to and from data files from different sources and compressions.
2
+
OneIO is a Rust library that provides a unified IO interface for synchronously reading and writing
3
+
to and from data files from different sources and compressions.
3
4
4
5
## Usage and Feature Flags
5
6
6
7
Enable all compression algorithms and handle remote files (default)
7
8
8
9
```toml
9
-
oneio = "0.17"
10
+
oneio = "0.18"
10
11
```
11
12
12
13
Select from supported feature flags
13
14
14
15
```toml
15
-
oneio = { version = "0.17", default-features = false, features = ["remote", "gz"] }
16
+
oneio = { version = "0.18", default-features = false, features = ["remote", "gz"] }
16
17
```
17
18
18
19
Default flags include `lib-core` and `rustls`.
@@ -22,6 +23,8 @@ Default flags include `lib-core` and `rustls`.
22
23
`lib-core` core features include:
23
24
24
25
- `remote`: allow reading from remote files, including http(s) and ftp
26
+
- `http`: support reading from http(s) remote files using `reqwest` crate
27
+
- `ftp`: support reading from ftp remote files using `suppaftp` crate
25
28
- `compressions`: support all compression algorithms
26
29
- `gz`: support `gzip` files using `flate2` crate
27
30
- `bz`: support `bzip2` files using `bzip2` crate
@@ -51,7 +54,7 @@ Users can also manually opt-in to specific compression algorithms. For example,
51
54
and `bzip2` files:
52
55
53
56
```toml
54
-
oneio = { version = "0.17", default-features = false, features = ["gz", "bz"] }
57
+
oneio = { version = "0.18", default-features = false, features = ["gz", "bz"] }
55
58
```
56
59
57
60
## Use `oneio` commandline tool
@@ -159,7 +162,7 @@ assert_eq!(lines[1].as_str(), "This is a test.");
159
162
160
163
## Use OneIO Writer as a Library
161
164
162
-
[get_writer] returns a generic writer that implements [Write], and handles decompression from the following types:
165
+
[get_writer] returns a generic writer that implements [std::io::Write], and handles decompression from the following types:
0 commit comments