forked from madsmtm/objc2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
76 lines (63 loc) · 2.06 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 = "block2"
# Remember to update html_root_url in lib.rs
version = "0.5.0"
authors = ["Steven Sheldon", "Mads Marquart <[email protected]>"]
edition = "2021"
rust-version = "1.60"
description = "Apple's C language extension of blocks"
keywords = ["objective-c", "macos", "ios", "blocks"]
categories = [
"api-bindings",
"development-tools::ffi",
"os::macos-apis",
"external-ffi-bindings",
]
readme = "README.md"
repository = "https://github.com/madsmtm/objc2"
documentation = "https://docs.rs/block2/"
license = "MIT"
[features]
# The default runtime is Apple's. Other platforms will probably error if the
# correct feature flag is not specified.
default = ["std", "apple"]
# Currently not possible to turn off, put here for forwards compatibility.
std = ["alloc", "objc2/std"]
alloc = ["objc2/alloc"]
# Link to Apple's libclosure (exists in libSystem).
apple = ["objc2/apple"]
# Link to libBlocksRuntime from compiler-rt.
compiler-rt = ["objc2/unstable-compiler-rt"] # TODO: fix this
# Link to GNUStep's libobjc2 (which contains the block implementation).
gnustep-1-7 = ["objc2/gnustep-1-7"]
gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8"]
gnustep-1-9 = ["gnustep-1-8", "objc2/gnustep-1-9"]
gnustep-2-0 = ["gnustep-1-9", "objc2/gnustep-2-0"]
gnustep-2-1 = ["gnustep-2-0", "objc2/gnustep-2-1"]
# Link to Microsoft's libobjc2.
unstable-winobjc = ["gnustep-1-8"]
# Link to ObjFW.
unstable-objfw = []
# Expose private ffi functions and statics.
unstable-private = []
# For better documentation on docs.rs.
unstable-docsrs = []
[dependencies]
objc2 = { path = "../objc2", version = "0.5.1", default-features = false }
[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
features = ["unstable-docsrs", "unstable-private"]
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"aarch64-apple-ios",
"x86_64-apple-ios",
"aarch64-apple-tvos",
"aarch64-apple-watchos",
"aarch64-apple-ios-macabi",
"x86_64-unknown-linux-gnu",
"i686-unknown-linux-gnu",
]
[package.metadata.release]
shared-version = false
tag-prefix = "block"