7
45
Fork
You've already forked nice-plug
22

update objc dependency to objc2 #45

Closed
opened 2026年06月09日 00:52:26 +02:00 by BillyDM · 1 comment

Looking at the MacOS dependencies again, I noticed that the objc dependency in nice-plug was last updated 7 years ago. We should probably update it to use the new maintained objc2 crate.

Looking at the MacOS dependencies again, I noticed that the `objc` dependency in `nice-plug` was last updated 7 years ago. We should probably update it to use the new maintained `objc2` crate.
Contributor
Copy link

I just wanted suggest it. There's also a warning generated with the latest objc:

warning: unexpected `cfg` condition value: `cargo-clippy`
 --> crates/nice-plug/src/event_loop/macos.rs:119:28
 |
119 | unsafe { msg_send![class!(NSThread), isMainThread] }
 | ^^^^^^^^^^^^^^^^
 |
 = note: expected values for `feature` are: `assert_process_allocs`, `default`, `simd`, `standalone`, `unsafe_flush_denormals`, `vst3`, and `zstd`
 = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
 = help: try referring to `class` crate for guidance on how handle this unexpected cfg
 = help: the macro `class` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc`
 = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
 = note: this warning originates in the macro `class` (in Nightly builds, run with -Z macro-backtrace for more info)
I just wanted suggest it. There's also a warning generated with the latest `objc`: ``` warning: unexpected `cfg` condition value: `cargo-clippy` --> crates/nice-plug/src/event_loop/macos.rs:119:28 | 119 | unsafe { msg_send![class!(NSThread), isMainThread] } | ^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `assert_process_allocs`, `default`, `simd`, `standalone`, `unsafe_flush_denormals`, `vst3`, and `zstd` = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate = help: try referring to `class` crate for guidance on how handle this unexpected cfg = help: the macro `class` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration = note: this warning originates in the macro `class` (in Nightly builds, run with -Z macro-backtrace for more info) ```
Sign in to join this conversation.
No Branch/Tag specified
main
resizing
dev
standalone_fixes
FoobarIT/main
fixes
egui_3rd_party
vizia_baseview_update
egui_32
softbuffer
byo_gui_examples
raw_graphics_examples
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
v0.1.3
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RustAudio/nice-plug#45
Reference in a new issue
RustAudio/nice-plug
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?