ryanmcgrath / cacao

Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
MIT License
1.8k stars 65 forks source link

feat(webview): Add custom protocol (scheme) support #9

Closed lemarier closed 3 years ago

lemarier commented 3 years ago

This is a basic implementation of the custom protocol (scheme)

To make it clear, I added an example and can be run with:

cargo run --example webview_custom_protocol --features webview

https://user-images.githubusercontent.com/22237916/116000656-26030200-a5bf-11eb-819d-8186c3b2e1be.mov

ryanmcgrath commented 3 years ago

Ah, this is super cool. I think the only thing I'm curious about - can we make infer optional in Cargo.toml and gate it behind the webview feature flag?

I think everything else in here could be merged, really appreciate it!

lemarier commented 3 years ago

Here we go! Glad you think it'll be useful!

ryanmcgrath commented 3 years ago

Merged! Hella appreciated.