ocaml_sys/
lib.rs

1#![allow(clippy::missing_safety_doc)]
2#![allow(clippy::upper_case_acronyms)]
3#![no_std]
4
5pub type Char = cty::c_char;
6
7#[cfg(not(feature = "without-ocamlopt"))]
8pub const VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/ocaml_version"));
9
10#[cfg(feature = "without-ocamlopt")]
11pub const VERSION: &str = "";
12
13#[cfg(not(feature = "without-ocamlopt"))]
14pub const PATH: &str = include_str!(concat!(env!("OUT_DIR"), "/ocaml_path"));
15
16#[cfg(feature = "without-ocamlopt")]
17pub const PATH: &str = "";
18
19#[cfg(not(feature = "without-ocamlopt"))]
20pub const COMPILER: &str = include_str!(concat!(env!("OUT_DIR"), "/ocaml_compiler"));
21
22#[cfg(feature = "without-ocamlopt")]
23pub const COMPILER: &str = "";
24
25#[cfg(not(feature = "without-ocamlopt"))]
26pub const FLAT_FLOAT_ARRAY: bool = include!(concat!(env!("OUT_DIR"), "/flat_float_array"));
27
28#[cfg(feature = "without-ocamlopt")]
29pub const FLAT_FLOAT_ARRAY: bool = true;
30
31mod mlvalues;
32#[macro_use]
33mod memory;
34mod alloc;
35pub mod bigarray;
36mod callback;
37mod custom;
38mod fail;
39mod printexc;
40mod runtime;
41mod state;
42mod tag;
43
44pub use self::mlvalues::Value;
45pub use self::tag::Tag;
46pub use alloc::*;
47pub use callback::*;
48pub use custom::*;
49pub use fail::*;
50pub use memory::*;
51pub use mlvalues::*;
52pub use printexc::*;
53pub use runtime::*;
54pub use state::*;
55pub use tag::*;