Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

Commit fffddfc

Browse files
pbzweihanderyoshuawuyts
authored andcommitted
Make native runtime optional feature (#34)
1 parent 4f2e6f0 commit fffddfc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ keywords = ["async", "runtime", "generic", "tokio", "romio"]
1212
categories = ["asynchronous", "network-programming", "filesystem", "concurrency", "api-bindings"]
1313
edition = "2018"
1414

15+
[features]
16+
default = ["native"]
17+
native = ["runtime-native"]
18+
1519
[dependencies]
1620
futures-preview = "0.3.0-alpha.16"
1721
runtime-attributes = { path = "runtime-attributes", version = "0.3.0-alpha.4" }
1822
runtime-raw = { path = "runtime-raw", version = "0.3.0-alpha.3" }
19-
runtime-native = { path = "runtime-native", version = "0.3.0-alpha.3" }
23+
runtime-native = { path = "runtime-native", version = "0.3.0-alpha.3", optional = true }
2024

2125
[dev-dependencies]
2226
failure = "0.1.5"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ pub use runtime_attributes::main;
111111
pub use runtime_raw as raw;
112112

113113
#[doc(hidden)]
114+
#[cfg(feature = "native")]
114115
pub use runtime_native as native;

0 commit comments

Comments
 (0)