This commit is contained in:
2024-08-31 00:03:43 +08:00
parent caacec8455
commit 68c774316f
17 changed files with 5019 additions and 46 deletions

29
src/test.rs Normal file
View File

@@ -0,0 +1,29 @@
pub mod s3error;
pub mod chunk_to_raw;
pub mod sequencing;
pub mod fsapi;
use fsapi::{Bucket, FS};
use tokio::fs::File;
use std::path::PathBuf;
#[tokio::main]
async fn main() {
let mut fs = FS::new();
fs.set_base("rusts3-data-debug");
fs.initialize();
let b = fs.get_bucket("abcde").unwrap();
let result = b.list_objects("te", "", 10);
for next in result {
println!("{} -> {:?}", next.object_key(), next.kind());
}
let mut v = Vec::<i32>::new();
test(&mut v);
}
fn test(v:&mut Vec<i32>) {
v.push(1);
if v.len() < 5 {
test(v);
}
}