-
Notifications
You must be signed in to change notification settings - Fork 34
/
Cargo.toml
76 lines (65 loc) · 1.77 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
[package]
name = "magnus"
version = "0.8.0"
edition = "2021"
description = "High level Ruby bindings. Write Ruby extension gems in Rust, or call Ruby code from a Rust binary."
keywords = ["ruby", "rubygem", "extension", "gem"]
categories = ["api-bindings", "development-tools::ffi"]
repository = "https://github.com/matsadler/magnus"
homepage = "https://github.com/matsadler/magnus"
documentation = "https://docs.rs/magnus/"
license = "MIT"
exclude = [".github", ".gitignore"]
[workspace]
members = ["magnus-macros"]
exclude = [
"examples/rust_blank/ext/rust_blank",
"examples/custom_exception_ruby/ext/ahriman",
"examples/custom_exception_rust/ext/ahriman",
"examples/complete_object/ext/temperature",
]
[features]
bytes = ["dep:bytes"]
chrono = ["dep:chrono"]
embed = ["rb-sys/link-ruby"]
old-api = []
rb-sys = []
[dependencies]
bytes = { version = "1", optional = true }
chrono = { version = "0.4.38", optional = true }
magnus-macros = { version = "0.6.0", path = "magnus-macros" }
rb-sys = { version = "0.9.102", default-features = false, features = [
"bindgen-rbimpls",
"bindgen-deprecated-types",
"stable-api",
] }
seq-macro = "0.3"
[dev-dependencies]
magnus = { path = ".", default-features = false, features = [
"embed",
"rb-sys",
"bytes",
"chrono",
] }
rb-sys = { version = "0.9", default-features = false, features = [
"stable-api-compiled-fallback",
] }
[build-dependencies]
rb-sys-env = "0.1.2"
[lib]
doc-scrape-examples = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[example]]
name = "fibonacci"
doc-scrape-examples = false
[[example]]
name = "hello_world"
doc-scrape-examples = false
[[example]]
name = "mut_point"
doc-scrape-examples = false
[[example]]
name = "point"
doc-scrape-examples = false