Skip to content

Commit

Permalink
bumpup version
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Oct 6, 2024
1 parent a617bb0 commit 40741c9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion agnostic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agnostic"
version = "0.3.6"
version = "0.3.7"
edition.workspace = true
license.workspace = true
rust-version.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions agnostic/src/async_std/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ use std::{

use ::async_std::net::{TcpListener, TcpStream, UdpSocket};
use futures_util::FutureExt;
#[cfg(feature = "compat")]
use tokio_util::compat::FuturesAsyncWriteCompatExt;

use crate::net::{Net, TcpStreamOwnedReadHalf, TcpStreamOwnedWriteHalf, ToSocketAddrs};

Expand Down
4 changes: 2 additions & 2 deletions agnostic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#![allow(clippy::needless_return)]
#![allow(unreachable_code)]

#[cfg(all(feature = "compat", not(feature = "net")))]
compile_error!("`compat` feature is enabled, but `net` feature is disabled, `compact` feature must only be enabled with `net` feature");
#[cfg(all(feature = "tokio-compat", not(feature = "net")))]
compile_error!("`tokio-compat` feature is enabled, but `net` feature is disabled, `compact` feature must only be enabled with `net` feature");

#[macro_use]
mod macros;
Expand Down
2 changes: 0 additions & 2 deletions agnostic/src/smol/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ use std::{

use futures_util::FutureExt;
use smol::net::{TcpListener, TcpStream, UdpSocket};
#[cfg(feature = "compat")]
use tokio_util::compat::FuturesAsyncWriteCompatExt;

use crate::net::{Net, TcpStreamOwnedReadHalf, TcpStreamOwnedWriteHalf, ToSocketAddrs};

Expand Down
2 changes: 1 addition & 1 deletion lite/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agnostic-lite"
version = "0.3.15"
version = "0.3.16"
edition.workspace = true
license.workspace = true
rust-version.workspace = true
Expand Down
1 change: 1 addition & 0 deletions lite/src/time/delay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fn _assert1(_: Box<dyn AsyncLocalDelay<impl Future>>) {}
fn _assert2(_: Box<dyn AsyncDelay<impl Future>>) {}

/// Simlilar to Go's `time.AfterFunc`, but does not spawn a new thread.
///
/// If you want the future to run in its own thread, you should use
/// [`RuntimeLite::spawn_after`](crate::RuntimeLite::spawn_after) instead.
pub trait AsyncDelay<F>: Future<Output = Result<F::Output, Aborted>> + Send
Expand Down

0 comments on commit 40741c9

Please sign in to comment.