-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
83 lines (75 loc) · 2.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[package]
name = "janetrs"
version = "0.7.0"
authors = ["Eric Shimizu Karbstein <[email protected]>"]
description = "High level binding for Janet programming language"
repository = "https://github.com/GrayJack/janetrs"
homepage = "https://crates.io/crates/janetrs"
documentation = "https://docs.rs/janetrs"
license-file = "LICENSE"
readme = "README.md"
edition = "2021"
rust-version = "1.77.0"
keywords = ["janet", "embedding", "ffi"]
categories = ["api-bindings"]
exclude = ["/.github", "/.vscode"]
[package.metadata.docs.rs]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-freebsd",
"x86_64-unknown-netbsd",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-unknown-illumos",
"aarch64-unknown-linux-gnu",
"i686-unknown-linux-gnu",
"x86_64-pc-windows-gnu",
"x86_64-pc-windows-msvc",
]
all-features = false
features = ["amalgation", "nightly"]
rustdoc-args = ["--cfg", "docsrs"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bstr = { version = "1.0.0", default-features = false, features = ["alloc"] }
evil-janet = "1"
janetrs_macros = { version = "0.7.2", path = "janetrs_macros" }
janetrs_version = { version = "0.1.0", path = "janetrs_version" }
libc = { version = "0.2", default-features = false, features = [
"extra_traits",
] }
rand_core = "0.6"
[dev-dependencies]
[features]
default = ["std", "unicode", "amalgation"]
# To use Error trait and allocations
std = ["bstr/std", "janetrs_macros/std", "libc/std"]
# Use to statically link to janet runtime and have Janet client
amalgation = ["evil-janet/link-amalg"]
# Inline more functions
inline-more = ["janetrs_version/inline-more"]
# Unicode conveniences
unicode = ["bstr/unicode"]
# Use system janet.h
system = [
"evil-janet/system",
"janetrs_macros/system",
"janetrs_version/system",
]
# Use to link to system libjanet (not recommended generally)
link-system = [
"evil-janet/link-system",
"janetrs_macros/system",
"janetrs_version/system",
]
# Crate features that depends of a nightly gated features
nightly = []
[workspace]
members = ["janetrs_macros", "janetrs_version"]
[[example]]
name = "hello_world"
required-features = ["amalgation"]
[[example]]
name = "janet_native_module"
crate-type = ["cdylib", "staticlib"]
required-features = ["amalgation"]