forked from getditto/safer_ffi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
77 lines (61 loc) · 1.69 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
[lib]
path = "src/_lib.rs"
[package]
name = "safer-ffi"
# Keep in sync with `[dependencies.proc_macro]` and `src/proc_macro/Cargo.toml`
version = "0.0.6"
authors = ["Daniel Henry-Mantilla <[email protected]>"]
edition = "2018"
description = "Write safer FFI code in Rust without polluting it with unsafe code"
keywords = ["ffi", "no_std", "framework", "safety", "bindings"]
license = "MIT"
repository = "https://github.com/getditto/safer_ffi"
readme = "README.md"
[features]
default = [
"std",
]
nightly = []
alloc = []
std = [ "alloc" ]
derives = ["proc_macros"] # alias
proc_macros = [
"proc_macro/proc_macros",
"require_unsafe_in_body",
"proc-macro-hack",
]
debug_proc_macros = [
"proc_macros",
"proc_macro/verbose-expansions",
]
out-refs = ["uninit"]
headers = [
"inventory",
"proc_macro/headers",
"std",
]
[dev-dependencies]
macro_rules_attribute = "0.0.1"
[target.'cfg(not(target = "wasm32-unknown-unknown"))'.dependencies]
libc = { version = "0.2.66", default-features = false }
[dependencies]
paste = { package = "mini_paste", version = "0.1.*" }
log = { version = "0.4.8", optional = true }
require_unsafe_in_body = { version = "0.2.1", optional = true }
inventory = { version = "0.1.6", optional = true }
proc-macro-hack = { version = "0.5.15", optional = true }
[dependencies.proc_macro]
package = "safer_ffi-proc_macro"
path = "src/proc_macro"
version = "0.0.6"
[dependencies.uninit]
optional = true
# Since we are relying on internals of their `Out` reference,
# we pin the version.
version = "=0.3.0"
default-features = false
[workspace]
members = ["src/proc_macro"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docs"]