-
Notifications
You must be signed in to change notification settings - Fork 42
/
Cargo.toml
69 lines (61 loc) · 1.87 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
[workspace]
members = [
"crates/*",
"framework-crates/*",
"crates/test-assembly/crates/*",
]
resolver = "2"
[workspace.package]
authors = ["Mads Marquart <[email protected]>"]
edition = "2021"
rust-version = "1.71"
repository = "https://github.com/madsmtm/objc2"
# Framework crate defaults
# Remember to update in header-translator, and manually authored lib.rs.
version = "0.2.2"
# Some crates in this repo may have a different license, see each crate for the specifics.
license = "Zlib OR Apache-2.0 OR MIT"
categories = [
"api-bindings",
"development-tools::ffi",
"external-ffi-bindings",
"os::macos-apis",
]
[workspace.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"
[workspace.lints.clippy]
cargo = { level = "warn", priority = -1 } # Because of `lint_groups_priority`
ptr_as_ptr = "warn"
[profile.assembly-tests]
inherits = "release"
# Enable LTO to allow testing the `unstable-static-sel-inlined` feature
lto = true
# Release data for framework crates
[workspace.metadata.release]
allow-branch = ["master"]
push-remote = "0origin"
shared-version = true # Framework crates share a version number
tag-prefix = "icrate"
tag-name = "{{prefix}}-{{version}}"
enable-features = ["all"]
owners = ["madsmtm", "simlay"]
# TODO: Check for typos in CI
[workspace.metadata.typos]
files.extend-exclude = [
# Generated files don't make sense to lint
"generated",
"*.s",
# This tests some weird strings
"framework-crates/objc2-foundation/src/tests/string.rs",
]
# Comes from the `clang` crate
default.extend-identifiers.ParmDecl = "ParmDecl"
# To be done as a larger rename
default.extend-identifiers.MessageRecieveId = "MessageRecieveId"
# Used in Metal, LOD = level of detail
default.extend-words.lod = "lod"