mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-28 00:58:59 +00:00
f7724d223b
* Set up a compatibility layer for replacing old Rio components with new ones. * fix(rio). compress range * feat(rio). Add the experimental feature rio_v2 to support minio data at the binary level. * feat(rio_v2): add sse-c test * test compression component * simple fix * fix minlz encode * fix metadata * fix kms key cache error * Update launch.json * ci: set nix crate download user agent * fix: gate obs pyroscope backend * ignore minio test * fix encrypt check * fix * fix * fix * Update object_usecase.rs * Update ci.yml * fix * ci add rio-v2 test * fix * ci fix * fix * Reconstructed into a more reasonable compatibility mode * fix * fix --------- Signed-off-by: houseme <housemecn@gmail.com> Signed-off-by: 唐小鸭 <tangtang1251@qq.com> Co-authored-by: houseme <housemecn@gmail.com> Co-authored-by: cxymds <Cxymds@qq.com> Co-authored-by: 安正超 <anzhengchao@gmail.com>
73 lines
1.8 KiB
Rust
73 lines
1.8 KiB
Rust
#![allow(dead_code)]
|
|
// Copyright 2024 RustFS Team
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
extern crate core;
|
|
|
|
pub mod admin_server_info;
|
|
pub mod batch_processor;
|
|
pub mod bitrot;
|
|
pub mod bucket;
|
|
pub mod cache_value;
|
|
pub mod compress;
|
|
pub mod config;
|
|
mod data_movement;
|
|
pub mod data_usage;
|
|
pub mod disk;
|
|
pub mod disks_layout;
|
|
pub mod endpoints;
|
|
pub mod erasure_coding;
|
|
pub mod error;
|
|
pub mod global;
|
|
pub mod metrics_realtime;
|
|
pub mod notification_sys;
|
|
pub mod pools;
|
|
pub mod rebalance;
|
|
pub mod rio;
|
|
pub mod rpc;
|
|
pub mod set_disk;
|
|
mod sets;
|
|
pub mod store;
|
|
pub mod store_api;
|
|
mod store_init;
|
|
pub mod store_list_objects;
|
|
pub mod store_utils;
|
|
|
|
// pub mod checksum;
|
|
pub mod client;
|
|
pub mod event;
|
|
pub mod event_notification;
|
|
#[cfg(test)]
|
|
mod pools_test;
|
|
#[cfg(test)]
|
|
mod store_test;
|
|
pub mod tier;
|
|
|
|
pub use global::new_object_layer_fn;
|
|
pub use global::set_global_endpoints;
|
|
pub use global::update_erasure_type;
|
|
pub use global::{get_global_lock_client, get_global_lock_clients, set_global_lock_client, set_global_lock_clients};
|
|
|
|
pub use global::GLOBAL_Endpoints;
|
|
pub use store_api::StorageAPI;
|
|
|
|
#[cfg(test)]
|
|
mod rio_tests {
|
|
#[test]
|
|
fn uses_expected_rio_backend() {
|
|
let expected = if cfg!(feature = "rio-v2") { "rio-v2" } else { "legacy-rio" };
|
|
assert_eq!(crate::rio::backend_name(), expected);
|
|
}
|
|
}
|