-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
41 lines (35 loc) · 1.12 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
[workspace]
members = ["proc_macros"]
[workspace.package]
edition = "2021"
authors = ["William Tremblay <[email protected]>"]
keywords = ["closure", "ffi"]
categories = ["development-tools::ffi", "no-std"]
license = "MIT"
repository = "https://github.com/tremwil/closure-ffi"
[package]
name = "closure-ffi"
version = "0.2.0"
description = "FFI utility for creating bare function pointers that invoke a closure"
edition.workspace = true
authors.workspace = true
keywords.workspace = true
categories.workspace = true
license.workspace = true
repository.workspace = true
[features]
default = [ "bundled_jit_alloc" ]
no_std = [ "spin" ]
bundled_jit_alloc = [ "jit-allocator" ]
proc_macros = [ "closure-ffi-proc-macros" ]
full = [ "bundled_jit_alloc", "proc_macros" ]
[dependencies]
closure-ffi-proc-macros = { path = "proc_macros", version = "0.2", optional = true }
jit-allocator = {version = "0.2.8", optional = true }
spin = { version = "0.9", optional = true }
seq-macro = "0.3"
[dev-dependencies]
spin = { version = "0.9" }
closure-ffi = { path = ".", features = ["full"] }
[package.metadata.docs.rs]
features = ["full"]