Registry / utility / self-update

self-update

JSON →
library0.43.1rscratesunverified

Self updates for standalone executables, enabling automatic binary replacement.

# Cargo.toml [dependencies] self_update = "0.43.1"
INSTALL
IMPORT
SIG · SELF-UPDATE
S
self-update
utilityrustv0.43.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cargo_crate_version
use self_update::cargo_crate_version;

Retrieves the current crate version for update checking.

use self_update::cargo_crate_version; fn main() { let version = cargo_crate_version!(); println!("Current version: {}", version); }
Debug
Known issues
gotchaRequires network access for update checks; may fail in restricted environments.
fix
Ensure the application has internet access or handle errors gracefully.
affects: >=0.43.0
Upgrade
Version history
0.43.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources
self-update — cargo add self-update · libregistry