Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ mutants.out
cargo-test*
coverage/*lcov
.testscompletions-*
.env
.idea/

# Generated by Cargo
# Use in library crates
Expand Down
7 changes: 7 additions & 0 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ fn main() -> Result<(), Box<dyn Error>> {
.to_snapshot()?;

// Create snapshot
let snap = repo.backup(&backup_opts, &source, snap)?;

let cancel = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(false));
let snap = repo.backup(&backup_opts, &source, snap, &cancel)?;
println!("successfully created snapshot:\n{snap:#?}");
Ok(())
}
Expand Down
1 change: 1 addition & 0 deletions crates/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ opendal = { version = "0.57.0", features = ["blocking", "services-b2", "services
anyhow = { workspace = true }
rstest = { workspace = true }
toml = "1.0.3"
dotenvy = "0.15.7"

[lints]
workspace = true
4 changes: 4 additions & 0 deletions crates/backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ pub mod util;
#[cfg(feature = "opendal")]
pub mod opendal;

/// Progress counting layer for the `OpenDAL` backend.
#[cfg(feature = "opendal")]
mod progress_layer;

/// `Rclone` backend for Rustic.
#[cfg(feature = "rclone")]
pub mod rclone;
Expand Down
Loading