#![forbid(unsafe_code)]
#![warn(
clippy::all,
clippy::cargo,
clippy::unwrap_used,
clippy::panic,
clippy::todo,
clippy::panic_in_result_fn,
)]
#![cfg_attr(docsrs2, feature(doc_cfg))]
#![doc(
html_logo_url = "https://github.com/oscartbeaumont/rspc/raw/main/docs/public/logo.png",
html_favicon_url = "https://github.com/oscartbeaumont/rspc/raw/main/docs/public/logo.png"
)]
mod config;
mod error;
mod middleware;
mod resolver;
mod resolver_result;
mod router;
mod router_builder;
mod selection;
pub use config::*;
pub use error::*;
pub use middleware::*;
pub use resolver::*;
pub use resolver_result::*;
pub use router::*;
pub use router_builder::*;
pub use selection::*;
pub mod internal;
#[cfg(debug_assertions)]
#[allow(clippy::panic)]
pub fn test_result_type<T: specta::Type + serde::Serialize>() {
panic!("You should not call `test_type` at runtime. This is just a debugging tool.");
}
#[cfg(debug_assertions)]
#[allow(clippy::panic)]
pub fn test_result_value<T: specta::Type + serde::Serialize>(_: T) {
panic!("You should not call `test_type` at runtime. This is just a debugging tool.");
}