-
Notifications
You must be signed in to change notification settings - Fork 31
/
Cargo.toml
52 lines (46 loc) · 1.31 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "ocaml"
version = "1.0.1"
authors = ["Zach Shipko <[email protected]>"]
readme = "README.md"
keywords = ["ocaml", "rust", "ffi"]
repository = "https://github.com/zshipko/ocaml-rs"
license = "ISC"
description = "OCaml bindings for Rust"
documentation = "https://docs.rs/ocaml"
edition = "2021"
[package.metadata.docs.rs]
no-default-features = true
features = [ "derive", "without-ocamlopt", "ocaml5" ]
[dependencies]
ocaml-sys = {path = "./sys", version = ">=0.24"}
ocaml-boxroot-sys = {version = "0.3.1", default-features = false}
ocaml-derive = {path = "./derive", optional = true, version = "^1.0.0"}
cstr_core = {version = "0.2", optional = true}
ndarray = {version = "^0.16.1", optional = true}
[features]
default = ["derive", "boxroot"]
# This is required for ocaml-rs to work correctly, it is only optional so docs.rs can build
boxroot = ["ocaml-boxroot-sys/bundle-boxroot"]
derive = ["ocaml-derive"]
link = ["ocaml-sys/link", "boxroot"]
without-ocamlopt = [
"ocaml-sys/without-ocamlopt",
]
no-std = ["cstr_core/alloc", "no-panic-hook", "boxroot"]
bigarray-ext = ["ndarray"]
no-caml-startup = []
no-panic-hook = []
ocaml5 = ["ocaml-sys/ocaml5"]
[workspace]
members = [
"derive",
"sys",
"test",
"build"
]
[dev-dependencies]
serial_test = "3.0.0"
[[example]]
name = "rust"
required-features = ["link"]