ryanmcgrath / cacao

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

webview compilation error #16

Closed singhwong closed 3 years ago

singhwong commented 3 years ago

Hi,after I added cacao (v0.2.0) as a project dependency, when I introduced the webveiw scope, a compilation error occurred.

use cacao::webview::{WebView, WebViewConfig, WebViewDelegate};

error:

unresolved import `cacao::webview`

could not find `webview` in `cacao`rustc(E0432)
webview_custom_protocol.rs(5, 12): could not find `webview` in `cacao`
cacao-0.2.0/src/webview/mod.rs
ryanmcgrath commented 3 years ago

Hmmm, odd - someone else is using the webview pieces and compiling okay… can you share your Cargo.toml definition?

On Tue, Jul 6, 2021 at 23:41, singhwong @.***> wrote:

Hi,after I added cacao (v0.2.0) as a project dependency, when I introduced the webveiw scope, a compilation error occurred.

use cacao::webview::{WebView, WebViewConfig, WebViewDelegate};

error:

unresolved import cacao::webview

could not find webview in cacaorustc(E0432) webview_custom_protocol.rs(5, 12): could not find webview in cacao cacao-0.2.0/src/webview/mod.rs

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

singhwong commented 3 years ago

Thank you for your reply, I found the problem! I did not add features in Cargo.toml.