madsmtm / objc2

Bindings to Apple's frameworks in Rust
https://docs.rs/objc2/
MIT License
281 stars 35 forks source link

Implement the Security framework? #596

Closed grahamc closed 1 day ago

grahamc commented 1 month ago

Hi,

Taking a brief look at this, it looks really nice to expose the libraries so directly. It looks like the Security frameworks have not been included, but I also haven't seen any mention about why in any issue. Is this a task that is not yet done, but also maybe not too hard? Or is this likely to be a very challenging task? I'm happy and able to help.

Thank you!

madsmtm commented 1 month ago

It hasn't been included because it needs types from CoreFoundation, and header-translator is not set up to handle that yet (since it's a challenging task, see https://github.com/madsmtm/objc2/issues/556 for some of it).

madsmtm commented 1 month ago

See the security-framework crate for manually written bindings

madsmtm commented 1 day ago

I've added a bit more information on how to interop with such crates in eb39164bcf67c8e8328cfe493b7be37a9e5101a7.

Interfacing with CoreFoundation-like frameworks is tracked in https://github.com/madsmtm/objc2/issues/556, so am going to close this.