You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the msg_send! macro yields warnings like this with upcoming rustc 1.84.0:
error: unexpected `cfg` condition value: `cargo-clippy`
--> /opt/worker/tasks/task_171225436694629/build/obj-build/x86_64-apple-darwin/debug/build/cocoabind-fb71164ed4d87a08/out/cocoa_bindings.rs:23030:9
|
23030 | msg_send!(class!(NSColor), whiteColor)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: no expected values for `feature`
= help: consider adding `cargo-clippy` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this error originates in the macro `sel_impl` which comes from the expansion of the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info)
Reacted by l, Marijn Suijten, Eric Zhang, Yury Shulaev, Lee C. Baker, José Luis Cruz, Ofer, backend-jinsu, Lance, Jonathan Fischer and 2 more
Hey, just gonna pipe in and say that I also maintain a fork (and have maintained it for a few years now), called objc2 - I suspect that can also solve your problems, if not, then I'd love to combine efforts @raphamorim!
Reacted by Timmy Jose, sjfhsjfh and Gabriel Falcão
Activity
glandium commentedon Dec 18, 2024
(this is an error in the log because we build with
-D warnings)glandium commentedon Dec 18, 2024
err, so this was actually fixed in #75, but never made it to crates.io.
raphamorim commentedon Jan 21, 2025
I patched those changes in a fork https://crates.io/crates/objc-rs
Feel free to use, if objc crate get any update I gladly will remove/drop my fork
madsmtm commentedon Jan 21, 2025
Hey, just gonna pipe in and say that I also maintain a fork (and have maintained it for a few years now), called
objc2- I suspect that can also solve your problems, if not, then I'd love to combine efforts @raphamorim!raphamorim commentedon Jan 21, 2025
objc2 is great, I use on Rio too (actually way more than objc) but some projects I wrote a long time ago I just want to maintain without much work.
but yes, I would recommend objc2 nowadays instead
fix clippy warnings for macos
fix clippy warnings for macos
fix clippy warnings for macos
macos: suppress warnings from legacy objc crate
Fix the native-bluetooth feature on macOS (#37476)