ryanmcgrath / cacao

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

Broken import in Hello, world #2

Closed gbj closed 3 years ago

gbj commented 3 years ago

This line of the Hello, world example in the README fails:

use cacao::macos::app::{App, AppDelegate};

The solution is just to change it to

use cacao::macos::{App, AppDelegate};

because the macos module re-exports app::* but app is not a pub mod.

Really interesting project, I'm looking forward to playing around with it.

ryanmcgrath commented 3 years ago

Yup, I’ve been tinkering hard with the internals, need to release the new examples. :(

My goal is to release a kitchen-sink with it to provide a better idea of how to use it end to end. No ETA yet but hopefully soon.

On Sat, Feb 6, 2021 at 11:05, Greg Johnston notifications@github.com wrote:

This line of the Hello, world example in the README fails:

use cacao::macos::app::{App, AppDelegate};

The solution is just to change it to

use cacao::macos::{App, AppDelegate};

because the macos module re-exports app::* but app is not a pub mod.

Really interesting project, I'm looking forward to playing around with it.

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

ryanmcgrath commented 3 years ago

Oh! Looking at this after coffee, I see you're talking about in the README.

Yeah, I should update that - it's likely giving a bad first impression. Really appreciate the catch!

ryanmcgrath commented 3 years ago

Just a heads up: I updated all the examples, and added a (mostly) functioning Todo list example. Check them out and let me know what you think! Hopefully the todo list showcases a bit better what's possible and/or where I'm hoping to take this all.