mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 15:44:36 +00:00

Some checks failed
ci / pre-build (push) Has been cancelled
ci / build libs (push) Has been cancelled
ci / test debug linux-aarch64 (push) Has been cancelled
ci / test release linux-aarch64 (push) Has been cancelled
ci / test debug macos-aarch64 (push) Has been cancelled
ci / test release macos-aarch64 (push) Has been cancelled
ci / bench release linux-x86_64 (push) Has been cancelled
ci / lint debug linux-x86_64 (push) Has been cancelled
ci / lint debug macos-x86_64 (push) Has been cancelled
ci / lint debug windows-x86_64 (push) Has been cancelled
ci / test debug linux-x86_64 (push) Has been cancelled
ci / test release linux-x86_64 (push) Has been cancelled
ci / test debug macos-x86_64 (push) Has been cancelled
ci / test release macos-x86_64 (push) Has been cancelled
ci / test debug windows-x86_64 (push) Has been cancelled
ci / test release windows-x86_64 (push) Has been cancelled
ci / publish canary (push) Has been cancelled
21 lines
496 B
Rust
21 lines
496 B
Rust
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
pub use inner::*;
|
|
|
|
#[cfg(feature = "sync")]
|
|
mod inner {
|
|
#![allow(clippy::disallowed_types)]
|
|
|
|
pub use core::marker::Send as MaybeSend;
|
|
pub use core::marker::Sync as MaybeSync;
|
|
pub use std::sync::Arc as MaybeArc;
|
|
}
|
|
|
|
#[cfg(not(feature = "sync"))]
|
|
mod inner {
|
|
pub trait MaybeSync {}
|
|
impl<T> MaybeSync for T where T: ?Sized {}
|
|
pub trait MaybeSend {}
|
|
impl<T> MaybeSend for T where T: ?Sized {}
|
|
pub use std::rc::Rc as MaybeArc;
|
|
}
|