Skip to content

Commit 2abd6c7

Browse files
committed
remove unstable feature
1 parent c79e2e7 commit 2abd6c7

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

tentacle/examples/simple_using_spawn.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![cfg(feature = "unstable")]
2-
31
/// Implement simple.rs example using `ProtocolSpawn`.
42
use bytes::Bytes;
53
use env_logger;

tentacle/src/builder.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ impl MetaBuilder {
356356
/// Define the spawn process of the protocol read part
357357
///
358358
/// Mutually exclusive with protocol handle
359-
#[cfg(feature = "unstable")]
360-
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
361359
pub fn protocol_spawn<T: ProtocolSpawn + Send + Sync + 'static>(mut self, spawn: T) -> Self {
362360
self.spawn = Some(Box::new(spawn));
363361
self

tentacle/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
//! Function related:
8585
//! - `ws`: Enable websocket protocol support
8686
//! - `upnp`: Enable upnp protocol, automatically try to register the port to the gateway
87-
//! - `unstable`: Enable the feature that has not yet decided to stabilize the API
8887
//! - `parking_lot`: Enable priority channel use `parking_lot`
8988
//!
9089
//! [`MetaBuilder`]: crate::builder::MetaBuilder
@@ -143,8 +142,6 @@ pub(crate) mod transports;
143142
pub mod utils;
144143

145144
mod channel;
146-
#[cfg_attr(not(feature = "unstable"), doc(hidden))]
147-
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
148145
#[allow(missing_docs)]
149146
pub mod runtime;
150147

tentacle/src/traits.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ impl SessionProtocol for Box<dyn SessionProtocol + Send + Sync + 'static + Unpin
232232
///
233233
/// This trait implementation and the callback implementation are mutually exclusive, and will be
234234
/// checked during construction, if both exist, it will panic
235-
#[cfg_attr(not(feature = "unstable"), doc(hidden))]
236-
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
237235
pub trait ProtocolSpawn {
238236
/// Call on protocol opened
239237
fn spawn(

tentacle/tests/test_protocol_open_close_on_spawn.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![cfg(feature = "unstable")]
21
use futures::StreamExt;
32
use std::{
43
sync::mpsc::channel,

0 commit comments

Comments
 (0)