forked from awslabs/mountpoint-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.rs
More file actions
43 lines (39 loc) · 1.06 KB
/
lib.rs
File metadata and controls
43 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#![deny(clippy::undocumented_unsafe_blocks)]
mod async_util;
pub mod autoconfigure;
pub mod checksums;
mod config;
pub mod content_type;
pub mod data_cache;
pub mod fs;
pub mod fuse;
pub mod logging;
#[cfg(feature = "manifest")]
pub mod manifest;
pub mod memory;
pub mod metablock;
pub mod metrics;
pub mod metrics_otel;
pub mod object;
pub mod prefetch;
pub mod s3;
mod superblock;
mod sync;
pub mod upload;
pub use async_util::Runtime;
pub use config::MountpointConfig;
pub use fs::{S3Filesystem, S3FilesystemConfig, ServerSideEncryption};
pub use superblock::{Superblock, SuperblockConfig};
/// Enable tracing and CRT logging when running unit tests.
#[cfg(test)]
#[ctor::ctor]
fn init_tracing_subscriber() {
let _ = mountpoint_s3_client::config::RustLogAdapter::try_init();
let _ = tracing_subscriber::fmt::try_init();
}
#[cfg(test)]
#[ctor::ctor]
fn init_crt() {
mountpoint_s3_client::config::io_library_init(&mountpoint_s3_client::config::Allocator::default());
mountpoint_s3_client::config::s3_library_init(&mountpoint_s3_client::config::Allocator::default());
}