Skip to content

Commit

Permalink
work-in-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanshade committed Feb 27, 2023
1 parent dac2bc1 commit 554d293
Show file tree
Hide file tree
Showing 24 changed files with 3,621 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: '1.60'
toolchain: '1.62'
profile: minimal
override: true
target: x86_64-apple-darwin
Expand Down Expand Up @@ -317,7 +317,7 @@ jobs:
# - lint

env:
ARGS: --no-default-features --features=std,apple
ARGS: --no-default-features --features=std,apple,unstable-proc-macros

steps:
- uses: actions/checkout@v3
Expand Down
124 changes: 124 additions & 0 deletions Cargo.lock

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

24 changes: 24 additions & 0 deletions crates/icrate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ required-features = [
"unstable-example-browser"
]

[[example]]
name = "ns_error_enum"
required-features = [
"unstable-example-ns_error_enum"
]

[features]
default = ["std", "apple"]

Expand Down Expand Up @@ -105,6 +111,8 @@ unstable-docsrs = []
# exist.
unstable-private = []

unstable-proc-macros = ["objc2/objc2-proc-macros"]

# Make the `ns_string!` macro create the string statically.
#
# Please test it, and report any issues you may find:
Expand All @@ -131,6 +139,22 @@ unstable-example-speech_synthesis = [
"Foundation",
"Foundation_NSString",
]
unstable-example-ns_error_enum = [
"apple",
"unstable-proc-macros",
"Foundation",
"Foundation_NSData",
"Foundation_NSDictionary",
"Foundation_NSEnumerator",
"Foundation_NSError",
"Foundation_NSMutableDictionary",
"Foundation_NSNumber",
"Foundation_NSString",
"Foundation_NSURL",
"Foundation_NSURLResponse",
"Foundation_NSURLSession",
"Foundation_NSURLSessionDataTask",
]
unstable-example-nspasteboard = [
"apple",
"Foundation",
Expand Down
1 change: 1 addition & 0 deletions crates/icrate/examples/browser.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(feature = "unstable-example-browser")]
#![deny(unsafe_op_in_unsafe_fn)]

use icrate::{
Expand Down
Loading

0 comments on commit 554d293

Please sign in to comment.