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
#![doc = include_str!("../README.md")]
#![cfg_attr(
    feature = "docs",
    cfg_attr(doc, doc = ::document_features::document_features!(feature_label = r#"<span class="stab portability"><code>{feature}</code></span>"#))
)]
#![cfg_attr(all(doc, CHANNEL_NIGHTLY), feature(doc_auto_cfg))]
#![warn(rust_2018_idioms, unreachable_pub)]
#![deny(missing_docs)]

#[cfg(all(not(feature = "runtime-c"), not(feature = "runtime-c2rust")))]
compile_error!("Either `runtime-c` or `runtime-c2rust` must be enabled!");
#[cfg(feature = "runtime-c")]
#[doc(hidden)]
pub use tree_sitter as ts_runtime;
#[cfg(all(
    feature = "runtime-c2rust",
    not(feature = "runtime-c"), // if both features are enabled, use the c runtime
))]
#[doc(hidden)]
pub use tree_sitter_c2rust as ts_runtime;

mod error;
pub mod language_set;
pub mod style;
pub mod theme;

pub use error::*;