Skip to content

Commit

Permalink
- fix some tests after rename
Browse files Browse the repository at this point in the history
- increase version
  • Loading branch information
radumarias committed May 20, 2024
1 parent 998f78a commit d547375
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down
1 change: 0 additions & 1 deletion examples/src/encryptedfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down
4 changes: 2 additions & 2 deletions src/encryptedfs/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d547375

Please sign in to comment.