-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathCargo.toml
60 lines (52 loc) · 1.64 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
# This file has been automatically generated by `objc2`'s `header-translator`.
# DO NOT EDIT
[package]
name = "dispatch2"
version = "0.1.0" # Remember to update html_root_url in lib.rs
description = "Bindings and wrappers for Apple's Grand Central Dispatch (GCD)"
edition.workspace = true
rust-version.workspace = true
keywords = ["gcd", "macos", "ios", "dispatch", "libdispatch"]
categories.workspace = true
repository.workspace = true
license = "Apache-2.0 OR MIT"
authors = ["Mads Marquart <[email protected]>", "Mary <[email protected]>"]
[lints]
workspace = true
[dependencies]
bitflags = { version = "2.5.0", default-features = false }
block2 = { path = "../block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] }
libc = { version = "0.2.80", default-features = false, optional = true }
objc2 = { path = "../objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] }
[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
features = ["all"]
rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"aarch64-apple-ios",
"aarch64-apple-tvos",
"aarch64-apple-watchos",
"aarch64-apple-ios-macabi",
"x86_64-unknown-linux-gnu",
"i686-unknown-linux-gnu",
]
[features]
default = ["std"]
std = ["alloc", "bitflags/std"]
alloc = []
block2 = ["dep:block2"]
libc = ["dep:libc"]
objc2 = ["dep:objc2"]
all = [
"block2",
"libc",
"objc2",
]
[package.metadata.release]
shared-version = false
tag-prefix = "dispatch"
enable-features = []
[dev-dependencies]
static_assertions = "1.1.0"