Switch to workspace layout
This commit is contained in:
parent
2913c64da3
commit
8b8f7563ad
36 changed files with 48 additions and 31 deletions
35
Cargo.toml
35
Cargo.toml
|
|
@ -1,30 +1,5 @@
|
||||||
[package]
|
[workspace]
|
||||||
name = "iced"
|
members = [
|
||||||
version = "0.1.0-alpha"
|
"core",
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
"examples",
|
||||||
edition = "2018"
|
]
|
||||||
description = "A GUI runtime, heavily inspired by Elm."
|
|
||||||
license = "MIT"
|
|
||||||
repository = "https://github.com/hecrj/iced"
|
|
||||||
documentation = "https://docs.rs/iced"
|
|
||||||
readme = "README.md"
|
|
||||||
keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
|
||||||
categories = ["gui"]
|
|
||||||
|
|
||||||
[badges]
|
|
||||||
maintenance = { status = "actively-developed" }
|
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
|
||||||
features = ["winit"]
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
stretch = "0.2"
|
|
||||||
twox-hash = "1.5"
|
|
||||||
|
|
||||||
# Enable to obtain conversion traits
|
|
||||||
winit = { version = "0.20.0-alpha3", optional = true }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
# A personal `ggez` fork that introduces a `FontCache` type to measure text
|
|
||||||
# efficiently and fixes HiDPI issues.
|
|
||||||
ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" }
|
|
||||||
|
|
|
||||||
25
core/Cargo.toml
Normal file
25
core/Cargo.toml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
[package]
|
||||||
|
name = "iced"
|
||||||
|
version = "0.1.0-alpha"
|
||||||
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
|
edition = "2018"
|
||||||
|
description = "A GUI runtime, heavily inspired by Elm."
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/hecrj/iced"
|
||||||
|
documentation = "https://docs.rs/iced"
|
||||||
|
readme = "README.md"
|
||||||
|
keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
||||||
|
categories = ["gui"]
|
||||||
|
|
||||||
|
[badges]
|
||||||
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
features = ["winit"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
stretch = "0.2"
|
||||||
|
twox-hash = "1.5"
|
||||||
|
|
||||||
|
# Enable to obtain conversion traits
|
||||||
|
winit = { version = "0.20.0-alpha3", optional = true }
|
||||||
17
examples/Cargo.toml
Normal file
17
examples/Cargo.toml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
[package]
|
||||||
|
name = "iced_examples"
|
||||||
|
version = "0.0.0"
|
||||||
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
|
publish = false
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "tour"
|
||||||
|
path = "tour/main.rs"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
iced = { version = "0.1.0-alpha", path = "../core" }
|
||||||
|
|
||||||
|
# A personal `ggez` fork that introduces a `FontCache` type to measure text
|
||||||
|
# efficiently and fixes HiDPI issues.
|
||||||
|
ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" }
|
||||||
|
|
@ -27,7 +27,7 @@ pub fn main() -> ggez::GameResult {
|
||||||
filesystem::mount(
|
filesystem::mount(
|
||||||
context,
|
context,
|
||||||
std::path::Path::new(&format!(
|
std::path::Path::new(&format!(
|
||||||
"{}/examples/resources",
|
"{}/resources",
|
||||||
env!("CARGO_MANIFEST_DIR")
|
env!("CARGO_MANIFEST_DIR")
|
||||||
)),
|
)),
|
||||||
true,
|
true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue