Skip to content

Commit ddc4505

Browse files
lauraltandreeaflorescu
authored andcommitted
hide StdIoBackend behind backend-stdio feature
Signed-off-by: Laura Loghin <[email protected]>
1 parent 76a6e37 commit ddc4505

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Diff for: Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ readme = "README.md"
99
license = "Apache-2.0 OR MIT"
1010
edition = "2018"
1111

12+
[features]
13+
backend-stdio = []
14+
1215
[dependencies]
1316
byteorder = ">=1.2.1"
1417
libc = ">=0.2.39"

Diff for: coverage_config_aarch64.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"coverage_score": 85.6,
33
"exclude_path": "",
4-
"crate_features": ""
4+
"crate_features": "backend-stdio"
55
}

Diff for: coverage_config_x86_64.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"coverage_score": 87.7,
33
"exclude_path": "",
4-
"crate_features": ""
4+
"crate_features": "backend-stdio"
55
}

Diff for: src/block/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44

55
/// Contains block request parsing abstraction.
66
pub mod request;
7-
/// Contains block request execution abstraction.
7+
/// Contains a block request execution abstraction that is based on
8+
/// [`std::io::Read`](https://doc.rust-lang.org/std/io/trait.Read.html)
9+
/// and [`std::io::Write`](https://doc.rust-lang.org/std/io/trait.Write.html).
10+
#[cfg(feature = "backend-stdio")]
811
pub mod stdio_executor;

0 commit comments

Comments
 (0)