Skip to content

Commit

Permalink
Add ScreenSaver framework / objc2-screen-saver crate
Browse files Browse the repository at this point in the history
Fixes #665.
  • Loading branch information
madsmtm committed Oct 25, 2024
1 parent 67a4acd commit 8852b5d
Show file tree
Hide file tree
Showing 10 changed files with 120 additions and 7 deletions.
12 changes: 6 additions & 6 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.

2 changes: 2 additions & 0 deletions crates/objc2/src/topics/about_generated/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
the types returned from `NSCopying` and `NSMutableCopying`.
* Added `MTLResourceID::from_raw` and `MTLResourceID::as_raw` to allow
querying the underlying data.
* Added new framework crates:
- `ScreenSaver` / `objc2-screen-saver`.

### Changed
* Allow using `MainThreadBound` without the `NSThread` feature flag.
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 @@ -60,6 +60,7 @@
| `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/) |
| `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/) |
| `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/) |
| `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/) |
| `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/) |
| `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/) |
| `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/) |
Expand Down
62 changes: 62 additions & 0 deletions framework-crates/objc2-screen-saver/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-screen-saver/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-screen-saver/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-screen-saver/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//! # Bindings to the `ScreenSaver` 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/screensaver/
//! [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-screen-saver/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::*;
4 changes: 4 additions & 0 deletions framework-crates/objc2-screen-saver/translation-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
framework = "ScreenSaver"
crate = "objc2-screen-saver"
required-dependencies = ["objc2-foundation"]
macos = "10.0"
2 changes: 1 addition & 1 deletion generated

0 comments on commit 8852b5d

Please sign in to comment.