diff --git a/Cargo.lock b/Cargo.lock index 48da1de..a35616f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,12 @@ checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "bitflags" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +dependencies = [ + "serde", +] [[package]] name = "byteorder" @@ -77,6 +80,7 @@ checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced" name = "file_rpc" version = "0.1.0" dependencies = [ + "bitflags", "parking_lot", "postcard", "serde", diff --git a/src/main.rs b/src/main.rs index 2edc0b9..4b6aef2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,6 +43,11 @@ impl fs_rpc::Server for Serv { .push((mount_id as usize, file_offset, file_size)); Ok((None, (self.files.read().len() - 1) as u64)) } + + fn open_dir(&self, path: &std::path::Path, mount_id: u64) -> Result<(Option, u64), ()> { + // TODO + Err(()) + } } impl file_rpc::Server for Serv {