Expand description
Asynchronous client library for publishing browser extensions to web stores.
wepub-core is the engine behind the wepub command-line
tool. It exposes one client type per supported store and a single
publish verb that handles upload, validation polling and
version submission end-to-end.
Currently supported stores:
- Firefox AMO via
firefox::FirefoxStore. Uses an HS256 JWT credential pair. - Chrome Web Store via
chrome::ChromeStore. Uses an OAuth refresh token (or a pre-fetched access token).
Both stores share the WepubError error type and the Result alias.
§Example
use wepub_core::firefox::{FirefoxPublishOptions, FirefoxStore};
let store = FirefoxStore::from_jwt_credentials(
"myaddon@example.com".into(),
"user:12345:6789".into(),
"jwt-secret".into(),
)?;
let zip = std::fs::read("./addon.zip")?;
store.publish(zip, FirefoxPublishOptions::default()).await?;Modules§
- chrome
- Chrome Web Store Publish API (v2) client.
- firefox
- Firefox AMO (addons.mozilla.org) Add-on Versions API client.
Enums§
- Wepub
Error - Error type returned by every fallible call in this crate.
Type Aliases§
- Result
- Convenience alias for
std::result::Resultspecialized toWepubError.