212 lines
4.3 KiB
TOML
212 lines
4.3 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
rust-version = "1.60"
|
|
name = "objc2"
|
|
version = "0.5.2"
|
|
authors = [
|
|
"Steven Sheldon",
|
|
"Mads Marquart <mads@marquart.dk>",
|
|
]
|
|
build = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Objective-C interface and runtime bindings"
|
|
documentation = "https://docs.rs/objc2/"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"objective-c",
|
|
"macos",
|
|
"ios",
|
|
"objc_msgSend",
|
|
"objc",
|
|
]
|
|
categories = [
|
|
"api-bindings",
|
|
"development-tools::ffi",
|
|
"os::macos-apis",
|
|
]
|
|
license = "MIT"
|
|
repository = "https://github.com/madsmtm/objc2"
|
|
|
|
[package.metadata.docs.rs]
|
|
default-target = "aarch64-apple-darwin"
|
|
features = ["exception"]
|
|
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]
|
|
enable-features = []
|
|
shared-version = false
|
|
tag-prefix = "objc"
|
|
|
|
[lib]
|
|
name = "objc2"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "class_with_lifetime"
|
|
path = "examples/class_with_lifetime.rs"
|
|
|
|
[[example]]
|
|
name = "encode_opaque_type"
|
|
path = "examples/encode_opaque_type.rs"
|
|
|
|
[[example]]
|
|
name = "encode_nsstring"
|
|
path = "examples/encode_nsstring.rs"
|
|
|
|
[[example]]
|
|
name = "encode_nsuinteger"
|
|
path = "examples/encode_nsuinteger.rs"
|
|
|
|
[[example]]
|
|
name = "encode_core_graphics"
|
|
path = "examples/encode_core_graphics.rs"
|
|
|
|
[[example]]
|
|
name = "introspection"
|
|
path = "examples/introspection.rs"
|
|
|
|
[[test]]
|
|
name = "use_macros"
|
|
path = "tests/use_macros.rs"
|
|
|
|
[[test]]
|
|
name = "no_prelude"
|
|
path = "tests/no_prelude.rs"
|
|
|
|
[[test]]
|
|
name = "macros_mainthreadmarker"
|
|
path = "tests/macros_mainthreadmarker.rs"
|
|
|
|
[[test]]
|
|
name = "id_retain_autoreleased"
|
|
path = "tests/id_retain_autoreleased.rs"
|
|
|
|
[[test]]
|
|
name = "declare_class_self"
|
|
path = "tests/declare_class_self.rs"
|
|
|
|
[[test]]
|
|
name = "track_caller"
|
|
path = "tests/track_caller.rs"
|
|
|
|
[[test]]
|
|
name = "declare_class"
|
|
path = "tests/declare_class.rs"
|
|
|
|
[[bench]]
|
|
name = "autorelease"
|
|
path = "benches/autorelease.rs"
|
|
harness = false
|
|
|
|
[dependencies.malloc_buf]
|
|
version = "1.0"
|
|
optional = true
|
|
|
|
[dependencies.objc-sys]
|
|
version = "0.3.5"
|
|
default-features = false
|
|
|
|
[dependencies.objc2-encode]
|
|
version = "4.0.3"
|
|
default-features = false
|
|
|
|
[dependencies.objc2-proc-macros]
|
|
version = "0.1.3"
|
|
optional = true
|
|
|
|
[dev-dependencies.iai]
|
|
version = "0.1"
|
|
|
|
[dev-dependencies.memoffset]
|
|
version = "0.9.0"
|
|
|
|
[dev-dependencies.static_assertions]
|
|
version = "1.1.0"
|
|
|
|
[features]
|
|
alloc = [
|
|
"objc2-encode/alloc",
|
|
"objc-sys/alloc",
|
|
]
|
|
apple = []
|
|
catch-all = ["exception"]
|
|
default = ["std"]
|
|
exception = ["objc-sys/unstable-exception"]
|
|
gnustep-1-7 = [
|
|
"unstable-static-class",
|
|
"objc-sys/gnustep-1-7",
|
|
]
|
|
gnustep-1-8 = [
|
|
"gnustep-1-7",
|
|
"objc-sys/gnustep-1-8",
|
|
]
|
|
gnustep-1-9 = [
|
|
"gnustep-1-8",
|
|
"objc-sys/gnustep-1-9",
|
|
]
|
|
gnustep-2-0 = [
|
|
"gnustep-1-9",
|
|
"objc-sys/gnustep-2-0",
|
|
]
|
|
gnustep-2-1 = [
|
|
"gnustep-2-0",
|
|
"objc-sys/gnustep-2-1",
|
|
]
|
|
malloc = ["malloc_buf"]
|
|
relax-sign-encoding = []
|
|
relax-void-encoding = []
|
|
std = [
|
|
"alloc",
|
|
"objc2-encode/std",
|
|
"objc-sys/std",
|
|
]
|
|
unstable-apple-new = []
|
|
unstable-autoreleasesafe = []
|
|
unstable-c-unwind = []
|
|
unstable-compiler-rt = ["gnustep-1-7"]
|
|
unstable-msg-send-always-comma = []
|
|
unstable-static-class = ["objc2-proc-macros"]
|
|
unstable-static-class-inlined = ["unstable-static-class"]
|
|
unstable-static-sel = ["objc2-proc-macros"]
|
|
unstable-static-sel-inlined = ["unstable-static-sel"]
|
|
verify = []
|
|
|
|
[target."cfg(target_vendor = \"apple\")".dev-dependencies.core-foundation]
|
|
version = "0.9.3"
|
|
|
|
[lints.clippy]
|
|
cargo = "warn"
|
|
ptr_as_ptr = "warn"
|
|
|
|
[lints.rust]
|
|
elided_lifetimes_in_paths = "warn"
|
|
missing_copy_implementations = "warn"
|
|
missing_debug_implementations = "warn"
|
|
non_ascii_idents = "deny"
|
|
unreachable_pub = "warn"
|
|
unsafe_op_in_unsafe_fn = "deny"
|