Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rustic-rs/rustic_core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: rustic_testing-v0.2.3
Choose a base ref
...
head repository: rustic-rs/rustic_core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: rustic_testing-v0.3.0
Choose a head ref
  • 19 commits
  • 89 files changed
  • 7 contributors

Commits on Oct 28, 2024

  1. chore(deps): update actions (#344)

    This PR contains the following updates:
    
    | Package | Type | Update | Change |
    |---|---|---|---|
    |
    [MarcoIeni/release-plz-action](https://redirect.github.com/MarcoIeni/release-plz-action)
    | action | digest | `394e0e4` -> `0a28fd4` |
    | [actions/checkout](https://redirect.github.com/actions/checkout) |
    action | digest | `eef6144` -> `11bd719` |
    |
    [taiki-e/install-action](https://redirect.github.com/taiki-e/install-action)
    | action | digest | `a3df294` -> `278aeeb` |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
    Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
    
    👻 **Immortal**: This PR will be recreated if closed unmerged. Get
    [config
    help](https://redirect.github.com/renovatebot/renovate/discussions) if
    that's undesired.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend Renovate](https://mend.io/renovate/).
    View the [repository job
    log](https://developer.mend.io/github/rustic-rs/rustic_core).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJBLWNpIl19-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 28, 2024
    Configuration menu
    Copy the full SHA
    f1c842d View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2024

  1. Configuration menu
    Copy the full SHA
    171e2aa View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. chore(deps): add installation script for default feature on x86_64-un…

    …known-linux-musl
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    simonsan committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    cd26d87 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2024

  1. refactor(errors)!: Improve error handling, display and clean up codeb…

    …ase (#321)
    
    - Grouped imports for better organization: `ErrorKind`, `RusticError`, `RusticResult`
    - Fixed and updated tests for new error handling logic
    - Addressed Clippy lints and improved code quality
    - Ensured build compatibility for *nix and OSX platforms
    - Updated function documentation to reflect new error handling
    - Removed unused local error variants after refactor
    - Verified `rustic-rs` functionality against the updated branch
    simonsan authored Nov 16, 2024
    Configuration menu
    Copy the full SHA
    40ad287 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2024

  1. refactor(deps)!: upgrade to new conflate version (#300)

    BREAKING CHANGE: We replaced the use of HashMaps with BTreeMaps in
    `rustic_backend`.
    
    ---------
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    Co-authored-by: aawsome <37850842+aawsome@users.noreply.github.com>
    simonsan and aawsome authored Nov 17, 2024
    Configuration menu
    Copy the full SHA
    093eab3 View commit details
    Browse the repository at this point in the history
  2. refactor(deps): remove cdc and switch to rustic_cdc (#348)

    Uses https://crates.io/crates/rustic_cdc
    
    ---------
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    simonsan authored Nov 17, 2024
    Configuration menu
    Copy the full SHA
    c6722b0 View commit details
    Browse the repository at this point in the history
  3. chore(deps): lock file maintenance rust dependencies (#345)

    This PR contains the following updates:
    
    | Package | Type | Update | Change |
    |---|---|---|---|
    |  |  | lockFileMaintenance | All locks refreshed |
    | [bytes](https://redirect.github.com/tokio-rs/bytes) |
    workspace.dependencies | minor | `1.7.2` -> `1.8.0` |
    | [cached](https://redirect.github.com/jaemk/cached) | dependencies |
    minor | `0.53.1` -> `0.54.0` |
    | [insta](https://insta.rs/)
    ([source](https://redirect.github.com/mitsuhiko/insta)) |
    dev-dependencies | minor | `1.40.0` -> `1.41.1` |
    | [serde_with](https://redirect.github.com/jonasbb/serde_with) |
    dependencies | minor | `3.10.0` -> `3.11.0` |
    | [tempfile](https://stebalien.com/projects/tempfile-rs/)
    ([source](https://redirect.github.com/Stebalien/tempfile)) |
    workspace.dependencies | minor | `3.13.0` -> `3.14.0` |
    | [tokio](https://tokio.rs)
    ([source](https://redirect.github.com/tokio-rs/tokio)) | dependencies |
    minor | `1.40.0` -> `1.41.1` |
    
    🔧 This Pull Request updates lock files to use the latest dependency
    versions.
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>tokio-rs/bytes (bytes)</summary>
    
    ###
    [`v1.8.0`](https://redirect.github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#180-October-21-2024)
    
    [Compare
    Source](https://redirect.github.com/tokio-rs/bytes/compare/v1.7.2...v1.8.0)
    
    - Guarantee address in `split_off`/`split_to` for empty slices
    ([#&#8203;740](https://redirect.github.com/tokio-rs/bytes/issues/740))
    
    </details>
    
    <details>
    <summary>jaemk/cached (cached)</summary>
    
    ###
    [`v0.54.0`](https://redirect.github.com/jaemk/cached/blob/HEAD/CHANGELOG.md#0540)
    
    #### \[0.54.0]
    
    </details>
    
    <details>
    <summary>mitsuhiko/insta (insta)</summary>
    
    ###
    [`v1.41.1`](https://redirect.github.com/mitsuhiko/insta/blob/HEAD/CHANGELOG.md#1411)
    
    [Compare
    Source](https://redirect.github.com/mitsuhiko/insta/compare/1.41.0...1.41.1)
    
    -   Re-release of 1.41.1 to generate release artifacts correctly.
    
    ###
    [`v1.41.0`](https://redirect.github.com/mitsuhiko/insta/blob/HEAD/CHANGELOG.md#1410)
    
    [Compare
    Source](https://redirect.github.com/mitsuhiko/insta/compare/1.40.0...1.41.0)
    
    - Experimental support for binary snapshots.
    [#&#8203;610](https://redirect.github.com/mitsuhiko/insta/issues/610)
    (Florian Plattner)
    
    - `--force-update-snapshots` now causes `cargo-insta` to write every
    snapshot, regardless of whether
        snapshots fully match, and now implies `--accept`.  This
        allows for `--force-update-snapshots` to update inline snapshots'
        delimiters and indentation.
    
    For the previous behavior of `--force-update-snapshots`, which limited
    writes to
        snapshots which didn't fully match, use `--require-full-match`.
    The main difference between `--require-full-match` and the existing
    behavior of `--force-update-snapshots`
        is a non-zero exit code on any snapshots which don't fully match.
    
    Like the previous behavior of `--force-update-snapshots`,
    `--require-full-match`
        doesn't track inline snapshots' delimiters or
    indentation, so can't update if those don't match.
    [#&#8203;644](https://redirect.github.com/mitsuhiko/insta/issues/644)
    
    - Inline snapshots only use `#` characters as delimiters when required.
    [#&#8203;603](https://redirect.github.com/mitsuhiko/insta/issues/603)
    
    - Warnings for undiscovered snapshots are more robust, and include files
    with
    custom snapshot extensions.
    [#&#8203;637](https://redirect.github.com/mitsuhiko/insta/issues/637)
    
    - Insta runs correctly on packages which reference rust files in a
    parent path.
    [#&#8203;626](https://redirect.github.com/mitsuhiko/insta/issues/626)
    
    - Warnings are printed when any snapshot uses a legacy format.
    [#&#8203;599](https://redirect.github.com/mitsuhiko/insta/issues/599)
    
    - `cargo insta --version` now prints a version.
    [#&#8203;665](https://redirect.github.com/mitsuhiko/insta/issues/665)
    
    -   `insta` now internally uses `INSTA_UPDATE=force` rather than
    `INSTA_FORCE_UPDATE=1`. (This doesn't affect users of `cargo-insta`,
    which
    handles this internally.)
    [#&#8203;482](https://redirect.github.com/mitsuhiko/insta/issues/482)
    
    - `cargo-insta`'s integration tests continue to grow over the past
    couple of versions,
        and now offer coverage of most of `cargo-insta`'s interface.
    
    </details>
    
    <details>
    <summary>jonasbb/serde_with (serde_with)</summary>
    
    ###
    [`v3.11.0`](https://redirect.github.com/jonasbb/serde_with/releases/tag/v3.11.0):
    serde_with v3.11.0
    
    [Compare
    Source](https://redirect.github.com/jonasbb/serde_with/compare/v3.10.0...v3.11.0)
    
    ##### Added
    
    - Add support for `hashbrown` v0.15
    ([#&#8203;787](https://redirect.github.com/jonasbb/serde_with/issues/787)/[#&#8203;790](https://redirect.github.com/jonasbb/serde_with/issues/790))
    
    This extends the existing support for `hashbrown` v0.14 to the newly
    released version.
    
    </details>
    
    <details>
    <summary>Stebalien/tempfile (tempfile)</summary>
    
    ###
    [`v3.14.0`](https://redirect.github.com/Stebalien/tempfile/blob/HEAD/CHANGELOG.md#3140)
    
    [Compare
    Source](https://redirect.github.com/Stebalien/tempfile/compare/v3.13.0...v3.14.0)
    
    - Make the wasip2 target work (requires tempfile's "nightly" feature to
    be enabled).
    [#&#8203;305](https://redirect.github.com/Stebalien/tempfile/pull/305).
    - Allow older windows-sys versions
    [#&#8203;304](https://redirect.github.com/Stebalien/tempfile/pull/305).
    
    </details>
    
    <details>
    <summary>tokio-rs/tokio (tokio)</summary>
    
    ###
    [`v1.41.1`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.41.1):
    Tokio v1.41.1
    
    [Compare
    Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.41.0...tokio-1.41.1)
    
    ### 1.41.1 (Nov 7th, 2024)
    
    ##### Fixed
    
    - metrics: fix bug with wrong number of buckets for the histogram
    ([#&#8203;6957])
    - net: display `net` requirement for `net::UdpSocket` in docs
    ([#&#8203;6938])
    -   net: fix typo in `TcpStream` internal comment ([#&#8203;6944])
    
    [#&#8203;6957]: https://redirect.github.com/tokio-rs/tokio/pull/6957
    
    [#&#8203;6938]: https://redirect.github.com/tokio-rs/tokio/pull/6938
    
    [#&#8203;6944]: https://redirect.github.com/tokio-rs/tokio/pull/6944
    
    ###
    [`v1.41.0`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.41.0):
    Tokio v1.41.0
    
    [Compare
    Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.40.0...tokio-1.41.0)
    
    ### 1.41.0 (Oct 22th, 2024)
    
    ##### Added
    
    - metrics: stabilize `global_queue_depth` ([#&#8203;6854],
    [#&#8203;6918])
    -   net: add conversions for unix `SocketAddr` ([#&#8203;6868])
    -   sync: add `watch::Sender::sender_count` ([#&#8203;6836])
    -   sync: add `mpsc::Receiver::blocking_recv_many` ([#&#8203;6867])
    -   task: stabilize `Id` apis ([#&#8203;6793], [#&#8203;6891])
    
    ##### Added (unstable)
    
    - metrics: add H2 Histogram option to improve histogram granularity
    ([#&#8203;6897])
    -   metrics: rename some histogram apis ([#&#8203;6924])
    -   runtime: add `LocalRuntime` ([#&#8203;6808])
    
    ##### Changed
    
    - runtime: box futures larger than 16k on release mode ([#&#8203;6826])
    -   sync: add `#[must_use]` to `Notified` ([#&#8203;6828])
    -   sync: make `watch` cooperative ([#&#8203;6846])
    -   sync: make `broadcast::Receiver` cooperative ([#&#8203;6870])
    -   task: add task size to tracing instrumentation ([#&#8203;6881])
    -   wasm: enable `cfg_fs` for `wasi` target ([#&#8203;6822])
    
    ##### Fixed
    
    - net: fix regression of abstract socket path in unix socket
    ([#&#8203;6838])
    
    ##### Documented
    
    -   io: recommend `OwnedFd` with `AsyncFd` ([#&#8203;6821])
    -   io: document cancel safety of `AsyncFd` methods ([#&#8203;6890])
    - macros: render more comprehensible documentation for `join` and
    `try_join` ([#&#8203;6814], [#&#8203;6841])
    - net: fix swapped examples for `TcpSocket::set_nodelay` and
    `TcpSocket::nodelay` ([#&#8203;6840])
    -   sync: document runtime compatibility ([#&#8203;6833])
    
    [#&#8203;6793]: https://redirect.github.com/tokio-rs/tokio/pull/6793
    
    [#&#8203;6808]: https://redirect.github.com/tokio-rs/tokio/pull/6808
    
    [#&#8203;6810]: https://redirect.github.com/tokio-rs/tokio/pull/6810
    
    [#&#8203;6814]: https://redirect.github.com/tokio-rs/tokio/pull/6814
    
    [#&#8203;6821]: https://redirect.github.com/tokio-rs/tokio/pull/6821
    
    [#&#8203;6822]: https://redirect.github.com/tokio-rs/tokio/pull/6822
    
    [#&#8203;6826]: https://redirect.github.com/tokio-rs/tokio/pull/6826
    
    [#&#8203;6828]: https://redirect.github.com/tokio-rs/tokio/pull/6828
    
    [#&#8203;6833]: https://redirect.github.com/tokio-rs/tokio/pull/6833
    
    [#&#8203;6836]: https://redirect.github.com/tokio-rs/tokio/pull/6836
    
    [#&#8203;6838]: https://redirect.github.com/tokio-rs/tokio/pull/6838
    
    [#&#8203;6840]: https://redirect.github.com/tokio-rs/tokio/pull/6840
    
    [#&#8203;6841]: https://redirect.github.com/tokio-rs/tokio/pull/6841
    
    [#&#8203;6846]: https://redirect.github.com/tokio-rs/tokio/pull/6846
    
    [#&#8203;6854]: https://redirect.github.com/tokio-rs/tokio/pull/6854
    
    [#&#8203;6867]: https://redirect.github.com/tokio-rs/tokio/pull/6867
    
    [#&#8203;6868]: https://redirect.github.com/tokio-rs/tokio/pull/6868
    
    [#&#8203;6870]: https://redirect.github.com/tokio-rs/tokio/pull/6870
    
    [#&#8203;6881]: https://redirect.github.com/tokio-rs/tokio/pull/6881
    
    [#&#8203;6890]: https://redirect.github.com/tokio-rs/tokio/pull/6890
    
    [#&#8203;6891]: https://redirect.github.com/tokio-rs/tokio/pull/6891
    
    [#&#8203;6897]: https://redirect.github.com/tokio-rs/tokio/pull/6897
    
    [#&#8203;6918]: https://redirect.github.com/tokio-rs/tokio/pull/6918
    
    [#&#8203;6924]: https://redirect.github.com/tokio-rs/tokio/pull/6924
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
    Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
    
    👻 **Immortal**: This PR will be recreated if closed unmerged. Get
    [config
    help](https://redirect.github.com/renovatebot/renovate/discussions) if
    that's undesired.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend Renovate](https://mend.io/renovate/).
    View the [repository job
    log](https://developer.mend.io/github/rustic-rs/rustic_core).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM5LjExLjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbIkEtZGVwZW5kZW5jaWVzIl19-->
    
    ---------
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
    renovate[bot] and simonsan authored Nov 17, 2024
    Configuration menu
    Copy the full SHA
    a27ee68 View commit details
    Browse the repository at this point in the history
  4. fix: prevent overwriting hot repository on init (#353)

    This commit ensures that the hot repository won't get overwritten during
    init when the non-hot repository does not exist.
    
    ---
    
    **Motivation:** During my setup of rustic, I used a bad cold repository
    reference by mistake. This led rustic to corrupt my hot repository,
    which I thought it should have prevented. I guess there may be other
    places we'd want to detect and safeguard against hot/cold
    inconsistencies, but I've not encountered them and I'm not proficient
    enough with the codebase yet to go with a broader change confidently.
    
    **Old behavior:**
    
    ```console
    $ --repo ./cold --repo-hot ./hot --password 'rustic' init
    [INFO] using no config file, none of these exist: /home/myself/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
    [INFO] key 70fde4b5 successfully added.
    [INFO] repository 7e37c018 successfully created.
    [INFO] using cache at /home/myself/.cache/rustic/7e37c0182ecf9122ac29094aba7a2456e2f4fcd8901de5548ba8d1f2cfbf424e
    
    $ sha256sum hot/config
    af78a9385084d3734fe4bba280449266c0a151ab6390baf6b684122e09f76c2a  hot/config
    
    $ rustic --repo ./cold2 --repo-hot ./hot --password 'rustic' init
    [INFO] using no config file, none of these exist: /home/myself/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
    [INFO] key 7455ca1b successfully added.
    [INFO] repository f6b5c80d successfully created.
    [INFO] using cache at /home/myself/.cache/rustic/f6b5c80d9aea1e279cb76f7f3855d563f277fa43884300738fe957a8051c54ff
    
    $ sha256sum hot/config
    28a41dfbc7653c4f2aea443a94bfc5a665d120969bd38ccf663f6f1da505d7a0  hot/config
    ```
    
    New behavior:
    
    ```console
    $ rustic --repo ./cold --repo-hot ./hot --password 'rustic' init
    [INFO] using no config file, none of these exist: /home/myself/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
    [INFO] key 60190cbb successfully added.
    [INFO] repository e5ce7241 successfully created.
    [INFO] using cache at /home/myself/.cache/rustic/e5ce7241a24254e7719865d60db0f0a939a5cdc21e1be9176856e5d385d70dfc
    
    $ rustic --repo ./cold2 --repo-hot ./hot --password 'rustic' init
    [INFO] using no config file, none of these exist: /home/myself/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
    error: Config file already exists. Aborting.
    ```
    
    Co-authored-by: aawsome <37850842+aawsome@users.noreply.github.com>
    gilbsgilbs and aawsome authored Nov 17, 2024
    Configuration menu
    Copy the full SHA
    c6741d8 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. fix(ci): comment out unsupported cross-compilation targets for `aws-l…

    …c-sys`
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    simonsan committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    064ee26 View commit details
    Browse the repository at this point in the history
  2. chore(deps): lock file maintenance (#357)

    This PR contains the following updates:
    
    | Update | Change |
    |---|---|
    | lockFileMaintenance | All locks refreshed |
    
    🔧 This Pull Request updates lock files to use the latest dependency
    versions.
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
    Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
    
    👻 **Immortal**: This PR will be recreated if closed unmerged. Get
    [config
    help](https://redirect.github.com/renovatebot/renovate/discussions) if
    that's undesired.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend Renovate](https://mend.io/renovate/).
    View the [repository job
    log](https://developer.mend.io/github/rustic-rs/rustic_core).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzkuMTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiQS1kZXBlbmRlbmNpZXMiXX0=-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
    renovate[bot] and simonsan authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    2048483 View commit details
    Browse the repository at this point in the history
  3. refactor(error): improve error messages and file handling (#334)

    - Create parent directory if it does not exist before opening the file
    for writing.
    
    Fixes rustic-rs/rustic#1315
    Fixes #310
    
    ---------
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    simonsan authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    749879f View commit details
    Browse the repository at this point in the history
  4. refactor(backend): migrate from backoff to backon (#356)

    Hello,
    
    Removed the unmaintained  `backoff` crate in the `rustic_backend` crate.
    Replaced it with the relatively similar `backon` crate.
    
    If `backon` as simpler API, it also lacks a few features that `backoff`
    had.
    For instance: `no_max_delay` or `backoff::retry_notify`. 
    To make up for it:
    - I opened Xuanwo/backon#160 on the `backon`
    github.
    - I implemented an internal module `backon_extension` inside
    `backend::rest`.
    
    Let me know what you think of the code!
    
    Fixes #351
    
    ---------
    
    Co-authored-by: Alexander Weiss <alex@weissfam.de>
    Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
    3 people authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    80892c5 View commit details
    Browse the repository at this point in the history
  5. chore: remove ignoral of advisory for RUSTSEC-2024-0384 (#358)

    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    simonsan authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    1d1a596 View commit details
    Browse the repository at this point in the history
  6. chore(deps): remove Derivative and replace with Default impl due to R…

    …USTSEC-2024-0388 (#359)
    
    Fixes #350
    
    ---------
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    simonsan authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    ea8d3cd View commit details
    Browse the repository at this point in the history
  7. feat: add 'yandex-disk' to enabled opendal services and update openda…

    …l to 0.50.2 (#360)
    
    Fixes #352
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    simonsan authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    c920320 View commit details
    Browse the repository at this point in the history
  8. refactor(backend): simplify code in local backend (#362)

    Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
    aawsome and simonsan authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    8ce88bf View commit details
    Browse the repository at this point in the history
  9. refactor(error): enhance error logging and output formatting (#361)

    - adds `display_log()` to `RusticError` for a minimal display to be used
    in logging
    - uses above method in error!/warn!/info! macros over the codebase
    - added snapshot test to make sure the output is as expected
    
    ---------
    
    Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
    simonsan authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    27bbbbd View commit details
    Browse the repository at this point in the history
  10. feat(async): add async_compatible methods to identify backend compa…

    …tibility (#355)
    
    Add `getters` to warn about `async_incompatible` backends.
    
    Using the type system or fixing all async compatibility issue is big and
    structural work.
    To avoid runtime crash for our users I suggest using this getter as a
    temporary fix.
    
    tracking issue: rustic-rs/rustic#1181 (see for more details)
    
    ---------
    
    Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
    nardoor and simonsan authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    37b40e2 View commit details
    Browse the repository at this point in the history
  11. chore: release (#354)

    ## 🤖 New release
    * `rustic_backend`: 0.4.2 -> 0.5.0 (⚠️ API breaking changes)
    * `rustic_core`: 0.5.5 -> 0.6.0 (⚠️ API breaking changes)
    * `rustic_testing`: 0.2.3 -> 0.3.0 (✓ API compatible changes)
    
    ### ⚠️ `rustic_backend` breaking changes
    
    ```
    --- failure enum_missing: pub enum removed or renamed ---
    
    Description:
    A publicly-visible enum cannot be imported by its prior path. A `pub use` may have been removed, or the enum itself may have been renamed or removed entirely.
            ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
           impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.36.0/src/lints/enum_missing.ron
    
    Failed in:
      enum rustic_backend::error::LocalBackendErrorKind, previously in file /tmp/.tmp0sSY8G/rustic_backend/src/error.rs:90
      enum rustic_backend::error::RestErrorKind, previously in file /tmp/.tmp0sSY8G/rustic_backend/src/error.rs:67
      enum rustic_backend::error::BackendAccessErrorKind, previously in file /tmp/.tmp0sSY8G/rustic_backend/src/error.rs:10
      enum rustic_backend::error::RcloneErrorKind, previously in file /tmp/.tmp0sSY8G/rustic_backend/src/error.rs:43
    
    --- failure module_missing: pub module removed or renamed ---
    
    Description:
    A publicly-visible module cannot be imported by its prior path. A `pub use` may have been removed, or the module may have been renamed, removed, or made non-public.
            ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
           impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.36.0/src/lints/module_missing.ron
    
    Failed in:
      mod rustic_backend::error, previously in file /tmp/.tmp0sSY8G/rustic_backend/src/error.rs:1
    ```
    
    ### ⚠️ `rustic_core` breaking changes
    
    ```
    --- failure inherent_method_missing: pub method removed or renamed ---
    
    Description:
    A publicly-visible method or associated fn is no longer available under its prior name. It may have been renamed or removed entirely.
            ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
           impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.36.0/src/lints/inherent_method_missing.ron
    
    Failed in:
      LocalDestination::remove_dir, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:129
      LocalDestination::remove_file, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:152
      LocalDestination::create_dir, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:171
      LocalDestination::set_times, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:189
      LocalDestination::set_user_group, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:237
      LocalDestination::set_uid_gid, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:283
      LocalDestination::set_permission, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:324
      LocalDestination::set_extended_attributes, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:385
      LocalDestination::set_length, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:466
      LocalDestination::create_special, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:521
      LocalDestination::read_at, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:599
      LocalDestination::write_at, previously in file /tmp/.tmp0sSY8G/rustic_core/src/backend/local_destination.rs:663
      RusticError::into_inner, previously in file /tmp/.tmp0sSY8G/rustic_core/src/error.rs:46
      RusticError::backend_error, previously in file /tmp/.tmp0sSY8G/rustic_core/src/error.rs:61
    ```
    
    <details><summary><i><b>Changelog</b></i></summary><p>
    
    ## `rustic_backend`
    <blockquote>
    
    ##
    [0.5.0](rustic_backend-v0.4.2...rustic_backend-v0.5.0)
    - 2024-11-18
    
    ### Added
    
    - *(async)* add `async_compatible` methods to identify backend
    compatibility
    ([#355](#355))
    - add 'yandex-disk' to enabled opendal services and update opendal to
    0.50.2 ([#360](#360))
    
    ### Other
    
    - *(error)* enhance error logging and output formatting
    ([#361](#361))
    - *(backend)* simplify code in local backend
    ([#362](#362))
    - *(backend)* migrate from `backoff` to `backon`
    ([#356](#356))
    - *(error)* improve error messages and file handling
    ([#334](#334))
    - *(deps)* lock file maintenance rust dependencies
    ([#345](#345))
    - *(deps)* [**breaking**] upgrade to new conflate version
    ([#300](#300))
    - *(errors)* [**breaking**] Improve error handling, display and clean up
    codebase ([#321](#321))
    </blockquote>
    
    ## `rustic_core`
    <blockquote>
    
    ##
    [0.6.0](rustic_core-v0.5.5...rustic_core-v0.6.0)
    - 2024-11-18
    
    ### Added
    
    - *(async)* add `async_compatible` methods to identify backend
    compatibility
    ([#355](#355))
    
    ### Fixed
    
    - prevent overwriting hot repository on init
    ([#353](#353))
    
    ### Other
    
    - *(error)* enhance error logging and output formatting
    ([#361](#361))
    - *(deps)* remove Derivative and replace with Default impl due to
    RUSTSEC-2024-0388
    ([#359](#359))
    - *(error)* improve error messages and file handling
    ([#334](#334))
    - *(deps)* lock file maintenance rust dependencies
    ([#345](#345))
    - *(deps)* remove cdc and switch to rustic_cdc
    ([#348](#348))
    - *(deps)* [**breaking**] upgrade to new conflate version
    ([#300](#300))
    - *(errors)* [**breaking**] Improve error handling, display and clean up
    codebase ([#321](#321))
    </blockquote>
    
    ## `rustic_testing`
    <blockquote>
    
    ##
    [0.3.0](rustic_testing-v0.2.3...rustic_testing-v0.3.0)
    - 2024-11-18
    
    ### Added
    
    - *(async)* add `async_compatible` methods to identify backend
    compatibility
    ([#355](#355))
    
    ### Other
    
    - *(errors)* [**breaking**] Improve error handling, display and clean up
    codebase ([#321](#321))
    </blockquote>
    
    
    </p></details>
    
    ---
    This PR was generated with
    [release-plz](https://github.com/MarcoIeni/release-plz/).
    
    Co-authored-by: rustic-release-plz[bot] <182542030+rustic-release-plz[bot]@users.noreply.github.com>
    rustic-release-plz[bot] authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    7a3b68e View commit details
    Browse the repository at this point in the history
Loading