Skip to main content

Crate wepub_core

Crate wepub_core 

Source
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:

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§

WepubError
Error type returned by every fallible call in this crate.

Type Aliases§

Result
Convenience alias for std::result::Result specialized to WepubError.