1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#![warn(clippy::pedantic)]
#![allow(dead_code)]
#![allow(unused)]
#![allow(clippy::doc_markdown)]

#[cfg(all(feature = "cli", feature = "wasm-web"))]
compile_error!("the features 'cli' and 'wasm-web' can't be enabled at the same time!");

#[cfg(all(feature = "cli", feature = "wasm-nodejs"))]
compile_error!("the features 'cli' and 'wasm-nodejs' can't be enabled at the same time!");

#[cfg(all(test, not(feature = "cli")))]
compile_error!("tests have to be run with the 'cli' feature flag");

mod args;
mod error;
mod formats;
mod langs;
mod list;
mod search;
mod utils;
mod wiki;

#[cfg(feature = "cli")]
mod info;
#[cfg(feature = "cli")]
mod io;

#[cfg(all(
    not(feature = "cli"),
    any(feature = "wasm-nodejs", feature = "wasm-web")
))]
mod wasm;

#[cfg(all(
    not(feature = "cli"),
    any(feature = "wasm-nodejs", feature = "wasm-web")
))]
pub use wasm::*;