Skip to content

Commit

Permalink
Add the ColorSync framework
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jan 12, 2025
1 parent 0fba880 commit 2591c57
Show file tree
Hide file tree
Showing 12 changed files with 147 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/header-translator/src/unexposed_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ impl UnexposedAttr {
| "CK_NEWLY_UNAVAILABLE"
| "CK_SWIFT_DEPRECATED"
| "CK_UNAVAILABLE"
| "CS_AVAILABLE_DESKTOP"
| "CS_AVAILABLE_STARTING"
| "CT_AVAILABLE"
| "CT_DEPRECATED"
| "CT_DEPRECATED_WITH_REPLACEMENT"
Expand Down Expand Up @@ -251,6 +253,7 @@ impl UnexposedAttr {
| "CB_CM_API_AVAILABLE"
| "CF_AUTOMATED_REFCOUNT_UNAVAILABLE"
| "CG_OBSOLETE"
| "CS_UNAVAILABLE_EMBEDDED"
| "deprecated"
| "DEPRECATED_ATTRIBUTE"
| "DISPATCH_UNAVAILABLE"
Expand Down
1 change: 1 addition & 0 deletions crates/objc2/src/topics/about_generated/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- `AVFAudio` / `objc2-avf-audio`.
- `AVFoundation` / `objc2-av-foundation`.
- `CoreAudioTypes` / `objc2-core-audio-types`.
- `ColorSync` / `objc2-color-sync`.
- `CoreGraphics` / `objc2-core-graphics`.
- `CoreFoundation` / `objc2-core-foundation`.
- `CoreMedia` / `objc2-core-media`.
Expand Down
1 change: 1 addition & 0 deletions crates/objc2/src/topics/about_generated/list_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
| `CallKit` | [![`objc2-call-kit`](https://badgen.net/crates/v/objc2-call-kit)](https://crates.io/crates/objc2-call-kit) | [![docs.rs](https://docs.rs/objc2-call-kit/badge.svg)](https://docs.rs/objc2-call-kit/) |
| `ClassKit` | [![`objc2-class-kit`](https://badgen.net/crates/v/objc2-class-kit)](https://crates.io/crates/objc2-class-kit) | [![docs.rs](https://docs.rs/objc2-class-kit/badge.svg)](https://docs.rs/objc2-class-kit/) |
| `CloudKit` | [![`objc2-cloud-kit`](https://badgen.net/crates/v/objc2-cloud-kit)](https://crates.io/crates/objc2-cloud-kit) | [![docs.rs](https://docs.rs/objc2-cloud-kit/badge.svg)](https://docs.rs/objc2-cloud-kit/) |
| `ColorSync` | [![`objc2-color-sync`](https://badgen.net/crates/v/objc2-color-sync)](https://crates.io/crates/objc2-color-sync) | [![docs.rs](https://docs.rs/objc2-color-sync/badge.svg)](https://docs.rs/objc2-color-sync/) |
| `Contacts` | [![`objc2-contacts`](https://badgen.net/crates/v/objc2-contacts)](https://crates.io/crates/objc2-contacts) | [![docs.rs](https://docs.rs/objc2-contacts/badge.svg)](https://docs.rs/objc2-contacts/) |
| `ContactsUI` | [![`objc2-contacts-ui`](https://badgen.net/crates/v/objc2-contacts-ui)](https://crates.io/crates/objc2-contacts-ui) | [![docs.rs](https://docs.rs/objc2-contacts-ui/badge.svg)](https://docs.rs/objc2-contacts-ui/) |
| `CoreAudioTypes` | [![`objc2-core-audio-types`](https://badgen.net/crates/v/objc2-core-audio-types)](https://crates.io/crates/objc2-core-audio-types) | [![docs.rs](https://docs.rs/objc2-core-audio-types/badge.svg)](https://docs.rs/objc2-core-audio-types/) |
Expand Down
3 changes: 3 additions & 0 deletions crates/test-frameworks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ test-frameworks = [
"objc2-class-kit/all",
"dep:objc2-cloud-kit",
"objc2-cloud-kit/all",
"dep:objc2-color-sync",
"objc2-color-sync/all",
"dep:objc2-contacts",
"objc2-contacts/all",
"dep:objc2-contacts-ui",
Expand Down Expand Up @@ -208,6 +210,7 @@ objc2-av-kit = { path = "../../framework-crates/objc2-av-kit", optional = true }
objc2-accessibility = { path = "../../framework-crates/objc2-accessibility", optional = true }
objc2-authentication-services = { path = "../../framework-crates/objc2-authentication-services", optional = true }
objc2-cloud-kit = { path = "../../framework-crates/objc2-cloud-kit", optional = true }
objc2-color-sync = { path = "../../framework-crates/objc2-color-sync", optional = true }
objc2-core-audio-types = { path = "../../framework-crates/objc2-core-audio-types", optional = true }
objc2-core-bluetooth = { path = "../../framework-crates/objc2-core-bluetooth", optional = true }
objc2-core-data = { path = "../../framework-crates/objc2-core-data", optional = true }
Expand Down
74 changes: 74 additions & 0 deletions framework-crates/objc2-color-sync/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions framework-crates/objc2-color-sync/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions framework-crates/objc2-color-sync/src/generated

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions framework-crates/objc2-color-sync/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//! # Bindings to the `ColorSync` framework
//!
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
//!
//! [apple-doc]: https://developer.apple.com/documentation/colorsync/
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-color-sync/0.2.2")]

#[cfg(feature = "alloc")]
extern crate alloc;

#[cfg(feature = "std")]
extern crate std;

mod generated;
#[allow(unused_imports, unreachable_pub)]
pub use self::generated::*;
9 changes: 9 additions & 0 deletions framework-crates/objc2-color-sync/translation-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
framework = "ColorSync"
crate = "objc2-color-sync"
required-crates = ["objc2-core-foundation"]
macos = "10.13"
maccatalyst = "13.0"
ios = "16.0"
tvos = "16.0"
watchos = "9.0"
visionos = "1.0"

0 comments on commit 2591c57

Please sign in to comment.