Skip to content

Commit 8be7b74

Browse files
committed
chore: Remove self-updater from default features
The self-updater feature is problematic for many different distribution channels including distro packages, direct `cargo install`, various package managers and containers, etc. It will even goof up folks installing from source builds they made themselves. Either the binary does not have permission and should not be trying to monkey with the system installed binaries or the rest of the things besides the binary will end up out of sync ith packaging. Distros have their own update mechanisms that shouldn't be tampered with by every app that comes along. This means distro have to build with --no-default-features for apps that include self-updaters by default, but that also means we have to maintain a list of features we do want. This is not only tedious it is error-prone because there is a very good chance of new features getting overlooked when doing version bumps. Additionally many other install workflows should be updating using those workflows, not being tampered with internally this way. The binaries posted on releases that people might download and place manually are good candidates for enabling this feature.
1 parent a34000f commit 8be7b74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rustic - fast, encrypted, deduplicated backups powered by Rust
1818
"""
1919

2020
[features]
21-
default = ["self-update", "tui", "webdav"]
21+
default = ["tui", "webdav"]
2222
mimalloc = ["dep:mimalloc"]
2323
jemallocator = ["dep:jemallocator-global"]
2424
self-update = ["dep:self_update", "dep:semver"]

0 commit comments

Comments
 (0)