archwiki_rs/
lib.rs

1#![warn(clippy::pedantic)]
2#![allow(dead_code)]
3#![allow(clippy::doc_markdown)]
4
5#[cfg(all(feature = "cli", feature = "wasm-web"))]
6compile_error!("the features 'cli' and 'wasm-web' can't be enabled at the same time!");
7
8#[cfg(all(feature = "cli", feature = "wasm-nodejs"))]
9compile_error!("the features 'cli' and 'wasm-nodejs' can't be enabled at the same time!");
10
11#[cfg(all(feature = "cli", feature = "wasm-bundler"))]
12compile_error!("the features 'cli' and 'wasm-bundler' can't be enabled at the same time!");
13
14#[cfg(all(test, not(feature = "cli")))]
15compile_error!("tests have to be run with the 'cli' feature flag");
16
17mod args;
18mod error;
19mod formats;
20mod langs;
21mod list;
22mod search;
23mod utils;
24mod wiki;
25
26#[cfg(feature = "cli")]
27mod info;
28#[cfg(feature = "cli")]
29mod io;
30
31#[cfg(all(
32    not(feature = "cli"),
33    any(
34        feature = "wasm-nodejs",
35        feature = "wasm-bundler",
36        feature = "wasm-web"
37    )
38))]
39mod wasm;
40
41#[cfg(all(
42    not(feature = "cli"),
43    any(
44        feature = "wasm-nodejs",
45        feature = "wasm-bundler",
46        feature = "wasm-web"
47    )
48))]
49pub use wasm::*;