Skip to content

Commit 4585359

Browse files
committed
Mark UniformTypeIdentifiers as automatically safe
1 parent b33a1e7 commit 4585359

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

crates/objc2/src/topics/FRAMEWORKS_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2222
- `IOKit` / `objc2-io-kit`.
2323
- `QuartzCore` / `objc2-quartz-core`.
2424
- `UIKit` / `objc2-ui-kit`.
25+
- `UniformTypeIdentifiers` / `objc2-uniform-type-identifiers`.
2526
- `UserNotifications` / `objc2-user-notifications`.
2627
* Added a lot of missing APIs.
2728
* Added `AsRef` impls for toll-free bridging between types like `CFString` and `NSString`.

framework-crates/objc2-uniform-type-identifiers/translation-config.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,15 @@ ios = "14.0"
77
tvos = "14.0"
88
watchos = "7.0"
99
visionos = "1.0"
10+
11+
##
12+
## Safety
13+
##
14+
15+
# SAFETY: UniformTypeIdentifiers is well-behaved.
16+
unsafe-default-safety.property-getters = true
17+
unsafe-default-safety.property-setters = true
18+
unsafe-default-safety.instance-methods = true
19+
unsafe-default-safety.class-methods = true
20+
unsafe-default-safety.functions = true
21+
unsafe-default-safety.not-bounds-affecting = false

0 commit comments

Comments
 (0)