Skip to content

Commit

Permalink
hide StdIoBackend behind backend-stdio feature
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Loghin <[email protected]>
  • Loading branch information
lauralt committed Dec 9, 2020
1 parent e849cd7 commit 1ce8f59
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ readme = "README.md"
license = "Apache-2.0 OR MIT"
edition = "2018"

[features]
backend-stdio = []

[dependencies]
byteorder = ">=1.2.1"
libc = ">=0.2.39"
Expand Down
2 changes: 1 addition & 1 deletion coverage_config_aarch64.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"coverage_score": 85.6,
"exclude_path": "",
"crate_features": ""
"crate_features": "backend-stdio"
}
2 changes: 1 addition & 1 deletion coverage_config_x86_64.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"coverage_score": 87.7,
"exclude_path": "",
"crate_features": ""
"crate_features": "backend-stdio"
}
5 changes: 4 additions & 1 deletion src/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

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

0 comments on commit 1ce8f59

Please sign in to comment.