wasmer_backend_api/
lib.rs#![allow(clippy::bool_comparison, clippy::match_like_matches_macro)]
mod client;
mod error;
pub mod global_id;
pub mod query;
pub mod stream;
pub mod subscription;
pub mod types;
use url::Url;
pub use self::{client::WasmerClient, error::GraphQLApiFailure};
pub const ENDPOINT_DEV: &str = "https://registry.wasmer.wtf/graphql";
pub const ENDPOINT_PROD: &str = "https://registry.wasmer.io/graphql";
pub fn endpoint_dev() -> Url {
Url::parse(ENDPOINT_DEV).unwrap()
}
pub fn endpoint_prod() -> Url {
Url::parse(ENDPOINT_PROD).unwrap()
}