mwoauth 0.1.0-rc.1

MediaWiki OAuth 2.0 client with optional Rocket, Axum, and Actix Web adapters
Documentation
// SPDX-License-Identifier: GPL-3.0-or-later
#![doc = include_str!("../README.md")]
#![deny(clippy::all)]
#![deny(rustdoc::all)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(feature = "rocket")]
extern crate rocket as rocket_framework;

#[cfg(feature = "actix")]
#[cfg_attr(docsrs, doc(cfg(feature = "actix")))]
pub mod actix;
#[cfg(feature = "axum")]
#[cfg_attr(docsrs, doc(cfg(feature = "axum")))]
pub mod axum;
mod config;
mod error;
mod flow;
#[cfg(feature = "rocket")]
#[cfg_attr(docsrs, doc(cfg(feature = "rocket")))]
pub mod rocket;
mod session;
mod types;

pub use config::MwOAuthConfig;
pub use error::{Error, ErrorKind};
pub use flow::{AuthorizationRequest, MwOAuthClient};
#[cfg(feature = "rocket")]
#[cfg_attr(docsrs, doc(cfg(feature = "rocket")))]
pub use rocket::{OptionalUserGuard, RocketOAuth, UserGuard};
pub use session::{DEFAULT_FLOW_TTL, DEFAULT_SESSION_TTL, PendingOAuthFlow, SessionStore};
pub use types::{AuthenticatedUser, OAuthToken, UserProfile};

const _: fn() = || {
    fn assert_send_sync<T: Send + Sync>() {}
    assert_send_sync::<MwOAuthClient>();
    assert_send_sync::<MwOAuthConfig>();
    assert_send_sync::<AuthenticatedUser>();
    assert_send_sync::<PendingOAuthFlow>();
    assert_send_sync::<UserProfile>();
};