Skip to content

Commit

Permalink
v++. FIx path in wal example. Remove target on check-before-push
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Dec 25, 2024
1 parent 9cad416 commit a3a615b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 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
Expand Up @@ -3,7 +3,7 @@ cargo-features = ["profile-rustflags"]
[package]
name = "rencfs"
description = "An encrypted file system that is mounted with FUSE on Linux. It can be used to create encrypted directories."
version = "0.13.78"
version = "0.13.79"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Radu Marias <[email protected]>"]
Expand Down
6 changes: 3 additions & 3 deletions examples/wal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn main() -> io::Result<()> {
// begin rustme snippet: readme-example
// Open a log using an Checkpointer that echoes the information passed into each
// function that the Checkpointer trait defines.
let log = WriteAheadLog::recover("my-log", LoggingCheckpointer)?;
let log = WriteAheadLog::recover("/tmp/rencfs/wal/my-log", LoggingCheckpointer)?;

// Begin writing an entry to the log.
let mut writer = log.begin_entry()?;
Expand Down Expand Up @@ -41,7 +41,7 @@ fn main() -> io::Result<()> {
// LoggingCheckpointer::recover will be invoked once for each entry in the WAL
// that hasn't been previously checkpointed.
drop(log);
let log = WriteAheadLog::recover("my-log", LoggingCheckpointer)?;
let log = WriteAheadLog::recover("/tmp/rencfs/wal/my-log", LoggingCheckpointer)?;

// We can use the previously returned DataRecord to read the original data.
let mut reader = log.read_at(record.position)?;
Expand All @@ -55,7 +55,7 @@ fn main() -> io::Result<()> {
// Cleanup
drop(reader);
drop(log);
std::fs::remove_dir_all("my-log")?;
std::fs::remove_dir_all("/tmp/rencfs/wal/my-log-log")?;

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion java-bridge/Cargo.lock

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

34 changes: 17 additions & 17 deletions scripts/check-before-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,42 @@ export CARGO_BUILD_JOBS=14

cargo fmt --all

cargo build --all-targets --all-features --target x86_64-unknown-linux-gnu
cargo build --release --all-targets --all-features --target x86_64-unknown-linux-gnu
cargo clippy --release --all-targets --fix --allow-dirty --allow-staged --target x86_64-unknown-linux-gnu
cargo build --all-targets --all-features
cargo build --release --all-targets --all-features
cargo clippy --release --all-targets --fix --allow-dirty --allow-staged
cargo fmt --all -- --check
cargo check --all --target x86_64-unknown-linux-gnu
cargo clippy --all-targets --release --target x86_64-unknown-linux-gnu -- \
cargo check --all
cargo clippy --all-targets --release -- \
-A clippy::similar_names \
-A clippy::too_many_arguments \
-A clippy::significant_drop_tightening \
-A clippy::redundant_closure \
-A clippy::missing_errors_doc \
-A clippy::type_complexity
cargo test --release --all --all-features --target x86_64-unknown-linux-gnu
cargo bench --workspace --all-targets --all-features --target x86_64-unknown-linux-gnu -j 14
cargo doc --workspace --all-features --no-deps --target x86_64-unknown-linux-gnu
cargo test --release --all --all-features
cargo bench --workspace --all-targets --all-features -j 14
cargo doc --workspace --all-features --no-deps

# cargo publish --dry-run --allow-dirty --target x86_64-unknown-linux-gnu
# cargo publish --dry-run --allow-dirty

cargo aur
cargo generate-rpm

cd java-bridge
cargo fmt --all
cargo build --all-targets --all-features --target x86_64-unknown-linux-gnu
cargo build --release --all-targets --all-features --target x86_64-unknown-linux-gnu
cargo clippy --release --all-targets --fix --allow-dirty --allow-staged --target x86_64-unknown-linux-gnu
cargo build --all-targets --all-features
cargo build --release --all-targets --all-features
cargo clippy --release --all-targets --fix --allow-dirty --allow-staged
cargo fmt --all -- --check
cargo check --all --target x86_64-unknown-linux-gnu
cargo clippy --all-targets --release --target x86_64-unknown-linux-gnu -- \
cargo check --all
cargo clippy --all-targets --release -- \
-A clippy::similar_names \
-A clippy::too_many_arguments \
-A clippy::significant_drop_tightening \
-A clippy::redundant_closure \
-A clippy::missing_errors_doc \
-A clippy::type_complexity
cargo test --release --all --all-features --target x86_64-unknown-linux-gnu
cargo bench --workspace --all-targets --all-features --target x86_64-unknown-linux-gnu -j 14
cargo doc --workspace --all-features --no-deps --target x86_64-unknown-linux-gnu
cargo test --release --all --all-features
cargo bench --workspace --all-targets --all-features -j 14
cargo doc --workspace --all-features --no-deps
cd ..

0 comments on commit a3a615b

Please sign in to comment.