Skip to content

Commit 7a1e21d

Browse files
committed
Add Social framework / objc2-social crate
1 parent 0902524 commit 7a1e21d

File tree

11 files changed

+150
-7
lines changed

11 files changed

+150
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/header-translator/src/unexposed_attr.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ impl UnexposedAttr {
163163
| "OBJC_SWIFT_UNAVAILABLE"
164164
| "OPENGL_DEPRECATED"
165165
| "OPENGLES_DEPRECATED"
166+
| "SOCIAL_CLASS_AVAILABLE"
167+
| "SOCIAL_CLASS_AVAILABLE_IOS"
168+
| "SOCIAL_CLASS_AVAILABLE_MAC"
166169
| "UIKIT_AVAILABLE_TVOS_ONLY"
167170
| "UIKIT_AVAILABLE_IOS_ONLY"
168171
| "UIKIT_CLASS_AVAILABLE_IOS_ONLY"

crates/objc2/src/topics/about_generated/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3939
- `SensitiveContentAnalysis` / `objc2-sensitive-content-analysis`.
4040
- `PhotosUI` / `objc2-photos-ui`.
4141
- `FinderSync` / `objc2-finder-sync`.
42+
- `Social` / `objc2-social`.
4243
* Added `objc2_quartz_core::CAMetalDrawable` and
4344
`objc2_quartz_core::CAMetalLayer`.
4445
* Added methods to access `CALayer` from `objc2_app_kit::NSView`.

crates/objc2/src/topics/about_generated/list_data.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
| `ScreenCaptureKit` | [![`objc2-screen-capture-kit`](https://badgen.net/crates/v/objc2-screen-capture-kit)](https://crates.io/crates/objc2-screen-capture-kit) | [![docs.rs](https://docs.rs/objc2-screen-capture-kit/badge.svg)](https://docs.rs/objc2-screen-capture-kit/) |
6363
| `SensitiveContentAnalysis` | [![`objc2-sensitive-content-analysis`](https://badgen.net/crates/v/objc2-sensitive-content-analysis)](https://crates.io/crates/objc2-sensitive-content-analysis) | [![docs.rs](https://docs.rs/objc2-sensitive-content-analysis/badge.svg)](https://docs.rs/objc2-sensitive-content-analysis/) |
6464
| `ServiceManagement` | [![`objc2-service-management`](https://badgen.net/crates/v/objc2-service-management)](https://crates.io/crates/objc2-service-management) | [![docs.rs](https://docs.rs/objc2-service-management/badge.svg)](https://docs.rs/objc2-service-management/) |
65+
| `Social` | [![`objc2-social`](https://badgen.net/crates/v/objc2-social)](https://crates.io/crates/objc2-social) | [![docs.rs](https://docs.rs/objc2-social/badge.svg)](https://docs.rs/objc2-social/) |
6566
| `SoundAnalysis` | [![`objc2-sound-analysis`](https://badgen.net/crates/v/objc2-sound-analysis)](https://crates.io/crates/objc2-sound-analysis) | [![docs.rs](https://docs.rs/objc2-sound-analysis/badge.svg)](https://docs.rs/objc2-sound-analysis/) |
6667
| `Speech` | [![`objc2-speech`](https://badgen.net/crates/v/objc2-speech)](https://crates.io/crates/objc2-speech) | [![docs.rs](https://docs.rs/objc2-speech/badge.svg)](https://docs.rs/objc2-speech/) |
6768
| `StoreKit` | [![`objc2-store-kit`](https://badgen.net/crates/v/objc2-store-kit)](https://crates.io/crates/objc2-store-kit) | [![docs.rs](https://docs.rs/objc2-store-kit/badge.svg)](https://docs.rs/objc2-store-kit/) |

framework-crates/objc2-social/Cargo.toml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework-crates/objc2-social/README.md

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework-crates/objc2-social/src/generated

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//! # Bindings to the `Social` framework
2+
//!
3+
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
4+
//!
5+
//! [apple-doc]: https://developer.apple.com/documentation/social/
6+
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
7+
#![no_std]
8+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
9+
// Update in Cargo.toml as well.
10+
#![doc(html_root_url = "https://docs.rs/objc2-social/0.2.0")]
11+
12+
#[cfg(feature = "alloc")]
13+
extern crate alloc;
14+
15+
#[cfg(feature = "std")]
16+
extern crate std;
17+
18+
mod generated;
19+
#[allow(unused_imports, unreachable_pub)]
20+
pub use self::generated::*;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework = "Social"
2+
crate = "objc2-social"
3+
required-dependencies = ["objc2-foundation"]
4+
macos = "10.8"
5+
maccatalyst = "13.0"
6+
ios = "6.0"

0 commit comments

Comments
 (0)