| 1 |
[dependencies.bitflags] |
| 2 |
default-features = false |
| 3 |
features = ["std"] |
| 4 |
version = "2.5.0" |
| 5 |
|
| 6 |
[dependencies.block2] |
| 7 |
default-features = false |
| 8 |
features = ["alloc"] |
| 9 |
optional = true |
| 10 |
version = ">=0.6.1, <0.8.0" |
| 11 |
|
| 12 |
[dependencies.libc] |
| 13 |
default-features = false |
| 14 |
optional = true |
| 15 |
version = "0.2.80" |
| 16 |
|
| 17 |
[dependencies.objc2] |
| 18 |
default-features = false |
| 19 |
features = ["std"] |
| 20 |
optional = true |
| 21 |
version = ">=0.6.2, <0.8.0" |
| 22 |
|
| 23 |
[dev-dependencies.static_assertions] |
| 24 |
version = "1.1.0" |
| 25 |
|
| 26 |
[features] |
| 27 |
alloc = [] |
| 28 |
block2 = ["dep:block2"] |
| 29 |
default = ["std", "block2", "libc", "objc2"] |
| 30 |
libc = ["dep:libc"] |
| 31 |
objc2 = ["dep:objc2"] |
| 32 |
std = ["alloc"] |
| 33 |
|
| 34 |
[lib] |
| 35 |
path = "src/lib.rs" |
| 36 |
|
| 37 |
[lints.clippy] |
| 38 |
ptr_as_ptr = "warn" |
| 39 |
redundant_feature_names = "allow" |
| 40 |
|
| 41 |
[lints.clippy.cargo] |
| 42 |
level = "warn" |
| 43 |
priority = -1 |
| 44 |
|
| 45 |
[lints.rust] |
| 46 |
elided_lifetimes_in_paths = "warn" |
| 47 |
missing_copy_implementations = "warn" |
| 48 |
non_ascii_idents = "deny" |
| 49 |
unreachable_pub = "warn" |
| 50 |
unsafe_op_in_unsafe_fn = "deny" |
| 51 |
|
| 52 |
[package] |
| 53 |
authors = ["Mads Marquart <[email protected]>", "Mary <[email protected]>"] |
| 54 |
autobenches = false |
| 55 |
autobins = false |
| 56 |
autoexamples = false |
| 57 |
autolib = false |
| 58 |
autotests = false |
| 59 |
categories = ["api-bindings", "development-tools::ffi", "external-ffi-bindings", "os::macos-apis"] |
| 60 |
description = "Bindings and wrappers for Apple's Grand Central Dispatch (GCD)" |
| 61 |
edition = "2021" |
| 62 |
keywords = ["gcd", "macos", "ios", "dispatch", "libdispatch"] |
| 63 |
license = "Zlib OR Apache-2.0 OR MIT" |
| 64 |
name = "dispatch2" |
| 65 |
readme = "README.md" |
| 66 |
repository = "https://github.com/madsmtm/objc2" |
| 67 |
rust-version = "1.71" |
| 68 |
version = "0.3.1" |
| 69 |
|
| 70 |
[package.metadata.docs.rs] |
| 71 |
default-target = "aarch64-apple-darwin" |
| 72 |
rustc-args = ["--cfg", "docsrs"] |
| 73 |
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-tvos", "aarch64-apple-watchos", "aarch64-apple-ios-macabi", "aarch64-apple-visionos", "x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"] |
| 74 |
|
| 75 |
[package.metadata.release] |
| 76 |
shared-version = false |
| 77 |
tag-prefix = "dispatch2" |