-
Notifications
You must be signed in to change notification settings - Fork 35
/
Cargo.toml
92 lines (76 loc) · 2.61 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
84
85
86
87
88
89
90
91
92
[package]
name = "objc-sys"
# Remember to update `html_root_url` in lib.rs, the `links` key, and the
# exception function name.
#
# Also, beware of using pre-release versions here, since because of the
# `links` key, two pre-releases requested with `=...` are incompatible.
version = "0.3.5"
authors = ["Mads Marquart <mads@marquart.dk>"]
edition = "2021"
rust-version = "1.60"
description = "Raw bindings to the Objective-C runtime and ABI"
keywords = ["objective-c", "macos", "ios", "objc_msgSend", "sys"]
categories = [
"external-ffi-bindings",
# "no-std", "no-std::no-alloc", # TODO
"os::macos-apis",
]
repository = "https://github.com/madsmtm/objc2"
documentation = "https://docs.rs/objc-sys/"
license = "MIT"
readme = "README.md"
# Downstream users can customize the linking to libobjc!
# See https://doc.rust-lang.org/cargo/reference/build-scripts.html#overriding-build-scripts
links = "objc_0_3"
build = "build.rs"
[lints]
workspace = true
[features]
default = ["std"]
# Currently not possible to turn off, put here for forwards compatibility.
std = ["alloc"]
alloc = []
# Deprecated; this is the default on Apple platforms, and not applicable on other platforms.
apple = []
# Link to GNUStep's libobjc2
gnustep-1-7 = ["objc2-exception-helper?/gnustep-1-7"]
gnustep-1-8 = ["gnustep-1-7", "objc2-exception-helper?/gnustep-1-8"]
gnustep-1-9 = ["gnustep-1-8", "objc2-exception-helper?/gnustep-1-9"]
gnustep-2-0 = ["gnustep-1-9", "objc2-exception-helper?/gnustep-2-0"]
gnustep-2-1 = ["gnustep-2-0", "objc2-exception-helper?/gnustep-2-1"]
# Enable the equivalent of GNUStep's `STRICT_APPLE_COMPATIBILITY`
unstable-gnustep-strict-apple-compat = ["gnustep-1-7"]
# Link to Microsoft's libobjc2
unstable-winobjc = ["gnustep-1-8"]
# Link to ObjFW
unstable-objfw = []
# Uses `extern "C-unwind"` on relevant function declarations.
#
# This raises MSRV to `1.71`.
#
# Warning: Enabling this is a breaking change for consumer crates, as it
# changes the signature of functions.
unstable-c-unwind = []
# Private, deprecated.
unstable-exception = ["dep:objc2-exception-helper"]
[dependencies]
objc2-exception-helper = { path = "../objc2-exception-helper", version = "0.1.0", optional = true }
[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
features = ["unstable-c-unwind"]
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 = "objc-sys"
enable-features = []