Skip to main content

rustolio_utils/
lib.rs

1//
2// SPDX-License-Identifier: MPL-2.0
3//
4// Copyright (c) 2026 Tobias Binnewies. All rights reserved.
5//
6// This Source Code Form is subject to the terms of the Mozilla Public
7// License, v. 2.0. If a copy of the MPL was not distributed with this
8// file, You can obtain one at http://mozilla.org/MPL/2.0/.
9//
10
11mod error;
12
13pub mod bit_vec;
14pub mod bloom_filter;
15pub mod bytes;
16pub mod concat_classes;
17pub mod crypto;
18pub mod env;
19pub mod http;
20pub mod service;
21pub mod threadsafe;
22pub mod time;
23pub mod tracing;
24pub mod web_sys;
25
26pub use error::{Error, Result};
27
28pub mod prelude {
29    pub use crate::bytes::encoding::{async_impl, Decode, Encode};
30    pub use crate::error::{FromCustom as _, FromCustomError as _, FromJsValue as _};
31    pub use crate::service::AsStaticRef as _;
32    pub use crate::service::{self, service, service_impl, Service};
33    pub use crate::threadsafe::{self, Threadsafe};
34
35    #[doc(hidden)]
36    pub mod __utils_macros {
37        pub use crate::service::{AsStaticRef, ServiceLock};
38        pub use crate::threadsafe;
39
40        pub use crate::bytes::encoding::{
41            async_impl, AsyncDecoder, AsyncEncoder, Decode, Decoder, Encode, Encoder,
42        };
43
44        pub use crate::error::{Error, Result};
45    }
46}