diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-19 23:42:19 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-19 23:42:19 +0800 |
| commit | 40183e431da97fe0377b2f2e2ea47b3a14376680 (patch) | |
| tree | 0c117e2ec707f3ad33206f1e320af2b439f80dbe /rola-bucket/src/bucket/space.rs | |
| parent | d36acf196f7475a91550cc64c9c9a545adb65c50 (diff) | |
feat(rola-bucket): add TOML bucket config read/write
Add functions to read and write BucketConfig from and to TOML files,
including space-aware variants. Replace hardcoded resource file with
serializable config struct.
Diffstat (limited to 'rola-bucket/src/bucket/space.rs')
| -rw-r--r-- | rola-bucket/src/bucket/space.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/rola-bucket/src/bucket/space.rs b/rola-bucket/src/bucket/space.rs index 353075d..1775914 100644 --- a/rola-bucket/src/bucket/space.rs +++ b/rola-bucket/src/bucket/space.rs @@ -1,6 +1,4 @@ -// use log::trace; use shared_constants::common::FILE_BUCKET_ROOT_CONFIG; -use shared_functions::trace; use space_system::{SpaceRoot, SpaceRootFindPattern}; use crate::{AsyncBucketTransferProtocol, Bucket, bucket::init::init_bucket_at}; @@ -11,10 +9,7 @@ impl<Protocol: AsyncBucketTransferProtocol + Send + Sync> SpaceRoot for Bucket<P } fn create_space(path: &std::path::Path) -> Result<(), space_system::SpaceError> { - let path_str = path.display().to_string(); - trace!("Creating bucket at: {}", &path_str); init_bucket_at(path.into())?; - trace!("Bucket created at: {}", &path_str); Ok(()) } } |
