Skip to main content

oxc_data_structures/
lib.rs

1//! Data structures used across other oxc crates.
2
3#[cfg(feature = "assert_unchecked")]
4mod assert_unchecked;
5
6#[cfg(feature = "box_macros")]
7pub mod box_macros;
8
9#[cfg(feature = "branch_hints")]
10pub mod branch_hints;
11
12#[cfg(feature = "code_buffer")]
13pub mod code_buffer;
14
15#[cfg(feature = "fieldless_enum")]
16pub mod fieldless_enum;
17
18#[cfg(feature = "inline_string")]
19pub mod inline_string;
20
21#[cfg(feature = "non_null")]
22pub mod non_null;
23
24#[cfg(feature = "rope")]
25pub mod rope;
26
27#[cfg(feature = "slice_iter")]
28pub mod slice_iter;
29
30#[cfg(feature = "stack")]
31pub mod stack;
32
33#[cfg(feature = "str")]
34pub mod str;
35
36#[cfg(feature = "string_ext")]
37pub mod string_ext;
38
39// Gated on `any(test, ...)` because `implements!` is used in unit tests for `non_null` and `stack`,
40// and unit tests cannot enable features.
41// This enables:
42// * `cargo test -p oxc_data_structures --features non_null`
43// * `cargo test -p oxc_data_structures --features stack`
44#[cfg(any(test, feature = "types"))]
45pub mod types;