ryanmcgrath / cacao

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

Hello World example does not build #26

Closed pingiun closed 1 year ago

pingiun commented 2 years ago

Using the cacao 0.2.1 release i get an error when I copy the hello world example from the docs:

error[E0603]: module `app` is private
  --> src/main.rs:1:19
   |
1  | use cacao::macos::app::{App, AppDelegate};
   |                   ^^^ private module
   |
note: the module `app` is defined here
  --> /Users/jelle/.cargo/registry/src/github.com-1ecc6299db9ec823/cacao-0.2.1/src/macos/mod.rs:11:1
   |
11 | mod app;
   | ^^^^^^^^

For more information about this error, try `rustc --explain E0603`.
error: could not compile `rustgui` due to previous error