diff --git a/Cargo.toml b/Cargo.toml index d9c018d2..7d51ba14 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,11 +29,16 @@ include = [ ] [features] -alloc = [] +default = ["std", "supreme"] std = ["alloc", "memchr/std"] -default = ["std"] +supreme = ["std", "dep:nom-supreme"] + +alloc = [] docsrs = [] +[dependencies] +nom-supreme = { version = "0.8.0", optional = true } + [dependencies.memchr] version = "2.3" default-features = false diff --git a/src/lib.rs b/src/lib.rs index c82715a3..49ee89ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -433,6 +433,9 @@ pub mod lib { pub use self::internal::*; pub use self::traits::*; +#[cfg(feature = "supreme")] +#[cfg_attr(feature = "supreme", doc(cfg(feature = "supreme")))] +pub use nom_supreme as supreme; #[macro_use] mod macros;