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
*/
//! 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.
//!
//! 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 use curated_recommendations::{CuratedRecommendationLocale, CuratedRecommendationsApiError};
uniffi::setup_scaffolding!("merino");