From 3af77cf4490d8b29174703bf73d209ded53f2089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Kurowski?= Date: Tue, 9 Jul 2024 09:27:37 +0200 Subject: [PATCH] Hide ocaml state behind `caml-state` feature flag --- sys/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/lib.rs b/sys/src/lib.rs index d992c93a..773e1461 100644 --- a/sys/src/lib.rs +++ b/sys/src/lib.rs @@ -38,6 +38,7 @@ mod custom; mod fail; mod printexc; mod runtime; +#[cfg(feature = "caml-state")] mod state; mod tag; @@ -51,5 +52,6 @@ pub use memory::*; pub use mlvalues::*; pub use printexc::*; pub use runtime::*; +#[cfg(feature = "caml-state")] pub use state::*; pub use tag::*;