Skip to main content

Module direct

Module direct 

Source
Expand description

Direct backend — a bare-HTTPS-URL release source for private mirrors, S3-hosted releases, and air-gapped distributions that don’t speak a Git-forge API.

The provider reads a version_url (plain text or JSON with .version at the root) to discover the current version, then constructs asset URLs from asset_url_template. See crate::config::DirectParams for the template grammar.

§Lint exception

Like the other backends: linkme::distributed_slice emits #[link_section] that Rust 1.95+ attributes to the unsafe_code lint. No hand-rolled unsafe exists in this module.

Structs§

DirectProvider
Direct-source release provider.

Functions§

factory
Construct a DirectProvider from parsed config.
render_template
Substitute the documented placeholders in template.