2024-01-01 14:58:21 -05:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2023-05-08 11:02:02 -04:00
|
|
|
|
|
|
|
pub use inner::*;
|
|
|
|
|
|
|
|
#[cfg(feature = "sync_fs")]
|
|
|
|
mod inner {
|
|
|
|
#![allow(clippy::disallowed_types)]
|
2023-07-25 17:43:00 -04:00
|
|
|
|
2023-05-08 11:02:02 -04:00
|
|
|
pub use std::sync::Arc as MaybeArc;
|
|
|
|
|
|
|
|
pub use core::marker::Send as MaybeSend;
|
|
|
|
pub use core::marker::Sync as MaybeSync;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(not(feature = "sync_fs"))]
|
|
|
|
mod inner {
|
|
|
|
pub use std::rc::Rc as MaybeArc;
|
|
|
|
|
|
|
|
pub trait MaybeSync {}
|
|
|
|
impl<T> MaybeSync for T where T: ?Sized {}
|
|
|
|
pub trait MaybeSend {}
|
|
|
|
impl<T> MaybeSend for T where T: ?Sized {}
|
|
|
|
}
|