Skip to main content

ory_kratos_client_wasm/
lib.rs

1#![allow(unused_imports)]
2
3#[cfg(all(feature = "wasm", feature = "reqwest"))]
4compile_error!("feature \"wasm\" and feature \"reqwest\" cannot be enabled at the same time");
5
6extern crate serde;
7extern crate serde_json;
8extern crate serde_repr;
9extern crate url;
10
11#[cfg(feature = "reqwest")]
12extern crate reqwest;
13
14#[cfg(any(feature = "wasm", feature = "worker"))]
15extern crate gloo_utils;
16#[cfg(any(feature = "wasm", feature = "worker"))]
17extern crate wasm_bindgen;
18#[cfg(feature = "wasm")]
19extern crate wasm_bindgen_futures;
20#[cfg(feature = "wasm")]
21extern crate web_sys;
22
23#[cfg(feature = "reqwest")]
24pub mod apis;
25
26#[cfg(feature = "wasm")]
27pub mod wasm_apis;
28#[cfg(feature = "wasm")]
29pub use wasm_apis as apis;
30
31#[cfg(feature = "worker")]
32pub mod worker_apis;
33#[cfg(feature = "worker")]
34pub use worker_apis as apis;
35
36pub mod models;