-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(backend)!: Add backend to config and use rustic_backend
#977
Draft
simonsan
wants to merge
13
commits into
main
Choose a base branch
from
backend-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1683847
feat(config): add backend options to config
simonsan 9cdf754
Merge branch 'main' into backend-config
simonsan cea65ca
chore: update lockfile
simonsan 4eeb8d8
fix: fix parsing of `[[copy]]` section
simonsan 10b7c1c
docs(config): fix some more descriptions
simonsan 1ec83f6
WIP Temp settings
simonsan e9e8e52
Merge branch 'main' into backend-config
simonsan bc49b67
key add: Add additional options
aawsome 78343aa
fix path
aawsome 9096ee1
copy: Use target profile
aawsome c3d74a6
use backend and repository flattened under repository
aawsome 8af0ca4
use cli feature for rustic_backend
aawsome aa56949
fix clippy lint
aawsome File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ rustdoc-args = ["--document-private-items", "--generate-link-to-definition"] | |
|
||
[dependencies] | ||
abscissa_core = { workspace = true } | ||
rustic_backend = { workspace = true } | ||
rustic_core = { workspace = true } | ||
|
||
# errors | ||
|
@@ -64,6 +65,7 @@ log = { workspace = true } | |
# serialization | ||
serde = { workspace = true } | ||
serde_json = { workspace = true } | ||
serde_path_to_error = { workspace = true } | ||
serde_with = { workspace = true } | ||
|
||
# other dependencies | ||
|
@@ -85,24 +87,30 @@ humantime = { workspace = true } | |
indicatif = { workspace = true } | ||
itertools = { workspace = true } | ||
jemallocator-global = { version = "0.3.2", optional = true } | ||
mimalloc = { version = "0.1.39", default_features = false, optional = true } | ||
mimalloc = { version = "0.1.39", default-features = false, optional = true } | ||
rhai = { workspace = true } | ||
simplelog = { workspace = true } | ||
|
||
[dev-dependencies] | ||
abscissa_core = { workspace = true, features = ["testing"] } | ||
aho-corasick = { workspace = true } | ||
dircmp = { workspace = true } | ||
insta = { version = "1.34.0", features = ["toml"] } | ||
once_cell = { workspace = true } | ||
pretty_assertions = { workspace = true } | ||
rstest = { workspace = true } | ||
rustic_testing = { path = "crates/rustic_testing" } | ||
tempfile = { workspace = true } | ||
toml = { workspace = true } | ||
toml = { workspace = true, features = ["parse", "preserve_order"] } | ||
toml_edit = { workspace = true, features = ["serde"] } | ||
|
||
[target.'cfg(not(windows))'.dependencies] | ||
libc = "0.2.150" | ||
[workspace.dependencies] | ||
rustic_core = { version = "0.1.2", features = ["cli"] } | ||
rustic_core = { path = "../rustic_core/crates/core", features = ["cli"] } | ||
rustic_backend = { path = "../rustic_core/crates/backend", features = ["cli"] } | ||
# rustic_core = { version = "0.1.2", features = ["cli"] } | ||
|
||
abscissa_core = { version = "0.7.0", default-features = false, features = ["application"] } | ||
|
||
# logging | ||
|
@@ -117,6 +125,8 @@ anyhow = "1" | |
serde = { version = "1", features = ["serde_derive"] } | ||
serde_with = { version = "3.4", features = ["base64"] } | ||
serde_json = "1" | ||
serde_path_to_error = "0.1.14" | ||
toml_edit = { version = "0.21.0", features = ["serde"] } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: remove, we have |
||
|
||
# other dependencies | ||
aho-corasick = "1.1.2" | ||
|
@@ -146,7 +156,7 @@ quickcheck = "1" | |
quickcheck_macros = "1" | ||
tempfile = "3.8" | ||
pretty_assertions = "1.4" | ||
toml = "0.8" | ||
toml = { version = "0.8", features = ["parse", "preserve_order"] } | ||
dircmp = "0.2" | ||
|
||
# cargo-binstall support | ||
|
@@ -201,6 +211,11 @@ lto = true | |
debug-assertions = false | ||
codegen-units = 1 | ||
|
||
# Faster insta testing runs | ||
[profile.dev.package] | ||
insta = { opt-level = 3 } | ||
similar = { opt-level = 3 } | ||
|
||
# Allows quick RPM file generation, if "cargo-generate-rpm" is installed: | ||
# cargo build --release; cargo generate-rpm | ||
# will result in a file like target/generate-rpm/rustic-rs-0.6.1-1.x86_64.rpm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Repository options: These options define which repository settings and passwords to use. | ||
[repository] | ||
repository = "/tmp/repo" | ||
password = "test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Nice, but didn't really get it to work, could be nice for user facing errors though regarding misconfiguration.