Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Apr 26, 2021

Conversation

lemarier
Copy link
Contributor

@lemarier lemarier commented Apr 25, 2021

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
Screen.Recording.2021-04-25.at.12.09.29.PM.mov

This is a basic implementation of the custom protocol, with built-in mimetype extraction from the content, backed by URI detection.

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

```
cargo run --example webview_custom_protocol --features webview
```
@ryanmcgrath
Copy link
Owner

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
Copy link
Contributor Author

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

@ryanmcgrath ryanmcgrath merged commit be6ff21 into ryanmcgrath:trunk Apr 26, 2021
@ryanmcgrath
Copy link
Owner

Merged! Hella appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants