Skip to main content

Crate lingxia_update

Crate lingxia_update 

Source

Structs§

AppUpdateApply
AppUpdateProgressReporter
SemanticVersion
SignRequest
UpdateAuthentication
Opaque envelope carried on check-update. Providers must not reserialize signed.
UpdateConfig
UpdatePackageInfo
UpdateVerifyTarget
Version
A semantic version representation (major.minor.patch) shared by update policy and lxapp metadata persistence.

Enums§

AppUpdateEvent
AppUpdateStage
Channel
LxAppUpdateQuery
RuntimeCompatibilityError
UpdateError
UpdateTarget
VersionError

Traits§

AppUpdateHost
LxAppUpdateHost
UpdateProvider
Update contract shared by app and lxapp update implementations.

Functions§

app_update_scope_key
archive_sha256_hex
check_app_update
check_update_enabled
Prod only queries check-update with embedded public keys. Dev always queries; without keys it does not verify.
compact_manifest
configure_update
decode_base64url
default_channel
Default lxapp channel for this host, derived from the host env: devdraft, prodrelease. An open can pass an explicit channel to override; the client does not forbid draft on a prod host — the registry decides per-channel access.
embedded_update_public_keys
encode_base64url
ensure_app_update_candidate_version
ensure_lxapp_first_install
ensure_lxapp_force_update_for_installed
ensure_lxapp_target_version_ready
env_requires_signature
host_requires_signature
Whether this build accepts an unsigned update, whatever channel is asked for. Callers cannot pass a channel: that is the whole point — see verify_checked_update.
host_update_platform
load_signing_seed_file
lxapp_update_scope_key
public_key_base64url
send_app_update_event
send_app_update_failed
sign_package
sign_package_from_key_file
spawn_lxapp_background_update_check
subscribe_app_update_events
update_config
verify_archive_bytes
verify_checked_update

Type Aliases§

AppUpdateEventReceiver
AppUpdateEventSender