Revision control

Copy as Markdown

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
//! This crate is a cross-platform client library for Mozilla's Merino service.
//!
//! It provides three clients:
//!
//! - [`CuratedRecommendationsClient`](curated_recommendations::CuratedRecommendationsClient) —
//! fetches curated content recommendations (articles, stories) from the Merino backend,
//! powering features like Firefox's New Tab page.
//!
//! - [`SuggestClient`](suggest::SuggestClient) —
//! fetches search suggestions from the Merino suggest endpoint,
//! powering features like Firefox's address bar suggestions.
//!
//! - [`WrexhamClient`](widgets::wrexham::WrexhamClient) —
//! fetches Wrexham AFC matches and EFL Championship standings from the Merino widget
//! endpoints, powering the Wrexham widget.
//!
//! This crate uses [UniFFI](https://mozilla.github.io/uniffi-rs/) to generate cross-platform
//! bindings for Android and other targets.
pub mod curated_recommendations;
pub mod suggest;
pub mod widgets;
/// The production Merino host, used by every client unless a `base_host` is configured.
pub(crate) const DEFAULT_BASE_HOST: &str = "https://merino.services.mozilla.com";
pub use curated_recommendations::{CuratedRecommendationLocale, CuratedRecommendationsApiError};
uniffi::setup_scaffolding!("merino");