Skip to content

Commit 49881d2

Browse files
authored
hide event engine implementation behind the feature flag (#146)
1 parent 8b848ea commit 49881d2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ extra_platforms = ["spin/portable_atomic", "dep:portable-atomic"]
6161

6262
# [Internal features] (not intended for use outside of the library)
6363
contract_test = ["parse_token", "publish", "access"]
64-
full_no_std = ["serde", "reqwest", "aescbc", "parse_token", "blocking", "publish", "access"]
65-
full_no_std_platform_independent = ["serde", "aescbc", "parse_token", "blocking", "publish", "access"]
66-
pubnub_only = ["aescbc", "parse_token", "blocking", "publish", "access"]
64+
full_no_std = ["serde", "reqwest", "aescbc", "parse_token", "blocking", "publish", "access", "subscribe"]
65+
full_no_std_platform_independent = ["serde", "aescbc", "parse_token", "blocking", "publish", "access", "subscribe"]
66+
pubnub_only = ["aescbc", "parse_token", "blocking", "publish", "access", "subscribe"]
6767
mock_getrandom = ["getrandom/custom"]
68+
event_engine = []
69+
# TODO: temporary treated as internal until we officially release it
70+
subscribe = ["event_engine"]
6871

6972
[dependencies]
7073
async-trait = "0.1"

src/core/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@ pub mod serializer;
5858
pub use cryptor::Cryptor;
5959
pub mod cryptor;
6060

61+
#[cfg(feature = "event_engine")]
6162
pub(crate) mod event_engine;
63+
6264
pub(crate) mod metadata;

src/dx/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub mod access;
1212
#[cfg(feature = "publish")]
1313
pub mod publish;
1414

15+
#[cfg(feature = "subscribe")]
1516
pub mod subscribe;
1617

1718
#[cfg(all(feature = "parse_token", feature = "serde"))]

0 commit comments

Comments
 (0)