Skip to content

Commit 8852b5d

Browse files
committed
Add ScreenSaver framework / objc2-screen-saver crate
Fixes #665.
1 parent 67a4acd commit 8852b5d

File tree

10 files changed

+120
-7
lines changed

10 files changed

+120
-7
lines changed

.github/workflows/ci.yml

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

Cargo.lock

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1919
the types returned from `NSCopying` and `NSMutableCopying`.
2020
* Added `MTLResourceID::from_raw` and `MTLResourceID::as_raw` to allow
2121
querying the underlying data.
22+
* Added new framework crates:
23+
- `ScreenSaver` / `objc2-screen-saver`.
2224

2325
### Changed
2426
* Allow using `MainThreadBound` without the `NSThread` feature flag.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
| `PhotosUI` | [![`objc2-photos-ui`](https://badgen.net/crates/v/objc2-photos-ui)](https://crates.io/crates/objc2-photos-ui) | [![docs.rs](https://docs.rs/objc2-photos-ui/badge.svg)](https://docs.rs/objc2-photos-ui/) |
6161
| `QuartzCore` | [![`objc2-quartz-core`](https://badgen.net/crates/v/objc2-quartz-core)](https://crates.io/crates/objc2-quartz-core) | [![docs.rs](https://docs.rs/objc2-quartz-core/badge.svg)](https://docs.rs/objc2-quartz-core/) |
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/) |
63+
| `ScreenSaver` | [![`objc2-screen-saver`](https://badgen.net/crates/v/objc2-screen-saver)](https://crates.io/crates/objc2-screen-saver) | [![docs.rs](https://docs.rs/objc2-screen-saver/badge.svg)](https://docs.rs/objc2-screen-saver/) |
6364
| `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/) |
6465
| `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/) |
6566
| `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/) |

framework-crates/objc2-screen-saver/Cargo.toml

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

framework-crates/objc2-screen-saver/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-screen-saver/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 `ScreenSaver` 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/screensaver/
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-screen-saver/0.2.2")]
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
framework = "ScreenSaver"
2+
crate = "objc2-screen-saver"
3+
required-dependencies = ["objc2-foundation"]
4+
macos = "10.0"

0 commit comments

Comments
 (0)