Skip to content

Commit

Permalink
better reimports
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Jul 26, 2023
1 parent a857d7e commit e788716
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/subscribe_raw.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This example blocks so it never finishes.
// You have to stop it manually.

use futures::{StreamExt, TryStreamExt};
use pubnub::dx::subscribe::{SubscribeStreamEvent, Update};
use futures::TryStreamExt;
use pubnub::subscribe::Update;
use pubnub::{Keyset, PubNubClientBuilder};
use serde::Deserialize;
use std::env;
Expand Down
2 changes: 1 addition & 1 deletion examples/subscribe_raw_blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// You have to stop it manually.

use pubnub::core::PubNubError;
use pubnub::dx::subscribe::{SubscribeStreamEvent, Update};
use pubnub::subscribe::Update;
use pubnub::{Keyset, PubNubClientBuilder};
use serde::Deserialize;
use std::env;
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ pub use dx::{parse_token, Token};
#[doc(inline)]
pub use dx::publish;

#[cfg(feature = "subscribe")]
#[doc(inline)]
pub use dx::subscribe;

#[doc(inline)]
pub use dx::{Keyset, PubNubClientBuilder, PubNubGenericClient};

Expand Down

0 comments on commit e788716

Please sign in to comment.