bindist
Rust client for the BinDist Customer API — the customer-facing half of an application distribution platform. Covers listing applications and versions, browsing version files, requesting pre-signed download URLs, and minting public share links.
Install
[]
= "0.1"
= { = "1", = ["macros", "rt-multi-thread"] }
The crate is async and uses reqwest with rustls-tls (no OpenSSL).
Usage
use ;
async
Release channels
Versions can be published on non-default channels (for example, disabled
pre-release builds sit on the Test channel). Pass
channel: Some(Channel::Test) in the options struct to send the
X-Channel header:
use ;
# async
Errors
All API methods return Result<T, bindist::Error>. Error::Api(ApiError)
covers both server-returned error envelopes and non-2xx responses from
auth middleware / proxies / load balancers that never reach the API's
structured error renderer — in the latter case, ApiError::code is
derived from the HTTP status (unauthorized, forbidden, not_found,
rate_limited, server_error, http_error) and http_status holds
the underlying status.
Example
BINDIST_API_KEY=...
License
MIT — see LICENSE.