diff --git a/Cargo.lock b/Cargo.lock index c6d8a2b..ae737a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1646,7 +1646,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "rencfs" -version = "0.9.0" +version = "0.10.0" dependencies = [ "anyhow", "argon2", diff --git a/Cargo.toml b/Cargo.toml index 3196f24..5df1fad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rencfs" description = "An encrypted file system that mounts with FUSE on Linux. It can be used to create encrypted directories." -version = "0.9.0" +version = "0.10.0" edition = "2021" license = "Apache-2.0" authors = ["Radu Marias "] diff --git a/examples/src/encryptedfs.rs b/examples/src/encryptedfs.rs index 664df15..d01e36a 100644 --- a/examples/src/encryptedfs.rs +++ b/examples/src/encryptedfs.rs @@ -26,7 +26,6 @@ async fn main() -> Result<()> { let data_dir = Path::new("/tmp/rencfs_data_test").to_path_buf(); let _ = fs::remove_dir_all(data_dir.to_str().unwrap()); - let password = SecretString::from_str("password").unwrap(); let cipher = Cipher::ChaCha20Poly1305; let mut fs = EncryptedFs::new(data_dir.clone(), Box::new(PasswordProviderImpl {}), cipher).await?; diff --git a/src/encryptedfs/test.rs b/src/encryptedfs/test.rs index c5463c9..43f08e9 100644 --- a/src/encryptedfs/test.rs +++ b/src/encryptedfs/test.rs @@ -1324,7 +1324,7 @@ async fn test_create_nod() { // existing file assert!(matches!( - fs.mk( + fs.create( ROOT_INODE, &test_file, create_attr(FileType::RegularFile), @@ -1337,7 +1337,7 @@ async fn test_create_nod() { // existing directory assert!(matches!( - fs.mk( + fs.create( ROOT_INODE, &test_dir, create_attr(FileType::Directory), diff --git a/src/lib.rs b/src/lib.rs index 91a9306..00d8520 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,6 +109,8 @@ //! //! #[tokio::main] //! async fn main() -> Result<()> { +//! tracing_subscriber::fmt().init(); +//! //! let data_dir = Path::new("/tmp/rencfs_data_test").to_path_buf(); //! let _ = fs::remove_dir_all(data_dir.to_str().unwrap()); //! let cipher = Cipher::ChaCha20Poly1305;