syntastica_core/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(
3    feature = "docs",
4    cfg_attr(doc, doc = ::document_features::document_features!(feature_label = r#"<span class="stab portability"><code>{feature}</code></span>"#))
5)]
6#![cfg_attr(all(doc, CHANNEL_NIGHTLY), feature(doc_auto_cfg))]
7#![warn(rust_2018_idioms, unreachable_pub)]
8#![deny(missing_docs)]
9
10#[cfg(all(not(feature = "runtime-c"), not(feature = "runtime-c2rust")))]
11compile_error!("Either `runtime-c` or `runtime-c2rust` must be enabled!");
12#[cfg(feature = "runtime-c")]
13#[doc(hidden)]
14pub use tree_sitter as ts_runtime;
15#[cfg(all(
16    feature = "runtime-c2rust",
17    not(feature = "runtime-c"), // if both features are enabled, use the c runtime
18))]
19#[doc(hidden)]
20pub use tree_sitter_c2rust as ts_runtime;
21
22mod error;
23pub mod language_set;
24pub mod style;
25pub mod theme;
26
27pub use error::*;