Fix up the repo so examples work as they should

This commit is contained in:
Ryan McGrath 2020-03-26 18:06:11 -07:00
parent d512b7bcf5
commit 6b8aad4a94
No known key found for this signature in database
GPG key ID: 811674B62B666830
86 changed files with 8 additions and 42 deletions

View file

@ -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"

View file

@ -1,8 +0,0 @@
[package]
name = "autolayout"
version = "0.1.0"
authors = ["Ryan McGrath <ryan@rymc.io>"]
edition = "2018"
[dependencies]
appkit = { path = "../../appkit" }

View file

@ -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" }

View file

@ -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" }

View file

@ -1,8 +0,0 @@
[package]
name = "window"
version = "0.1.0"
authors = ["Ryan McGrath <ryan@rymc.io>"]
edition = "2018"
[dependencies]
appkit = { path = "../../appkit" }

View file

@ -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 {

View file

@ -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 {