Fix up the repo so examples work as they should
This commit is contained in:
parent
d512b7bcf5
commit
6b8aad4a94
|
@ -1,15 +1,17 @@
|
|||
[package]
|
||||
name = "appkit"
|
||||
description = "Rust wrappers for AppKit on macOS and UIKit on iOS."
|
||||
version = "0.1.0"
|
||||
authors = ["Ryan McGrath <ryan@rymc.io>"]
|
||||
edition = "2018"
|
||||
authors = ["Ryan McGrath <ryan@rymc.io>"]
|
||||
build = "build.rs"
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
repository = "https://github.com/ryanmcgrath/appkit-rs"
|
||||
categories = ["gui", "os::macos-apis"]
|
||||
keywords = ["gui", "macos", "appkit", "uikit"]
|
||||
|
||||
[dependencies]
|
||||
block = "0.1.6"
|
||||
core-foundation = { version = "0.7", features = ["with-chrono"] }
|
||||
core-graphics = "0.19.0"
|
||||
dispatch = "0.2.0"
|
||||
libc = "0.2"
|
|
@ -1,8 +0,0 @@
|
|||
[package]
|
||||
name = "autolayout"
|
||||
version = "0.1.0"
|
||||
authors = ["Ryan McGrath <ryan@rymc.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
appkit = { path = "../../appkit" }
|
|
@ -1,10 +0,0 @@
|
|||
[package]
|
||||
name = "window-controller"
|
||||
version = "0.1.0"
|
||||
authors = ["Ryan McGrath <ryan@rymc.io>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
appkit = { path = "../../appkit" }
|
|
@ -1,10 +0,0 @@
|
|||
[package]
|
||||
name = "window-delegate"
|
||||
version = "0.1.0"
|
||||
authors = ["Ryan McGrath <ryan@rymc.io>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
appkit = { path = "../../appkit" }
|
|
@ -1,8 +0,0 @@
|
|||
[package]
|
||||
name = "window"
|
||||
version = "0.1.0"
|
||||
authors = ["Ryan McGrath <ryan@rymc.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
appkit = { path = "../../appkit" }
|
|
@ -4,7 +4,7 @@
|
|||
//!
|
||||
//! If you're not using that, you can probably get by fine with a standard `NSWindow`.
|
||||
|
||||
use appkit::app::{App, AppDelegate, Dispatcher};
|
||||
use appkit::app::{App, AppDelegate};
|
||||
use appkit::window::{Window, WindowConfig, WindowController, WindowDelegate};
|
||||
|
||||
struct BasicApp {
|
|
@ -1,7 +1,7 @@
|
|||
//! This example showcases setting up a basic application and window delegate.
|
||||
//! Window Delegate's give you lifecycle methods that you can respond to.
|
||||
|
||||
use appkit::app::{App, AppDelegate, Dispatcher};
|
||||
use appkit::app::{App, AppDelegate};
|
||||
use appkit::window::{Window, WindowConfig, WindowDelegate};
|
||||
|
||||
struct BasicApp {
|
Loading…
Reference in a new issue