move bin targets to workspace fragments

png-branch
an 2019-02-25 15:27:05 -05:00
parent 1371e6c7fa
commit 87bfe2869a
14 changed files with 53 additions and 30 deletions

View File

@ -10,32 +10,15 @@ license = "MIT"
edition = "2018"
publish = false
build = "src/build.rs"
[workspace]
members = ["src/leela", "src/tycho"]
[dependencies]
argparse = "0.2"
bitflags = "1.0"
failure = "0.1"
generic-array = "0.12"
memmap = "0.7"
serde = {version = "1.0", features = ["derive"]}
serde_yaml = "0.8"
# note: these have to be updated all at once, check the gtk crate for versions
atk = "0.6"
cairo-rs = "0.6"
cairo-sys-rs = "0.8"
gdk = "0.10"
gdk-pixbuf = "0.6"
gio = "0.6"
gio-sys = "0.8"
glib = "0.7"
glib-sys = "0.8"
gobject-sys = "0.8"
gtk = "0.6"
gtk-sys = "0.8"
pango = "0.6"
pango-sys = "0.8"
[profile.dev]
opt-level = 1
@ -47,11 +30,3 @@ lto = true
[lib]
name = "maraiah"
path = "src/lib.rs"
[[bin]]
name = "leela"
path = "src/leela/main.rs"
[[bin]]
name = "tycho"
path = "src/tycho/main.rs"

18
src/leela/Cargo.toml Normal file
View File

@ -0,0 +1,18 @@
[package]
name = "maraiah-leela"
version = "0.1.0"
authors = ["Alison Sanderson <marrub@greyserv.net>"]
description = "Maraiah testbed program."
edition = "2018"
[dependencies]
argparse = "0.2"
maraiah = {path = "../.."}
memmap = "0.7"
serde = "1.0"
serde_yaml = "0.8"
[[bin]]
name = "leela"
path = "main.rs"

31
src/tycho/Cargo.toml Normal file
View File

@ -0,0 +1,31 @@
[package]
name = "maraiah-tycho"
version = "0.1.0"
authors = ["Alison Sanderson <marrub@greyserv.net>"]
description = "Tycho map editor."
edition = "2018"
build = "build.rs"
[dependencies]
maraiah = {path = "../.."}
# note: these have to be updated all at once, check the gtk crate for versions
atk = "0.6"
cairo-rs = "0.6"
cairo-sys-rs = "0.8"
gdk = "0.10"
gdk-pixbuf = "0.6"
gio = "0.6"
gio-sys = "0.8"
glib = "0.7"
glib-sys = "0.8"
gobject-sys = "0.8"
gtk = "0.6"
gtk-sys = "0.8"
pango = "0.6"
pango-sys = "0.8"
[[bin]]
name = "tycho"
path = "main.rs"

View File

Before

Width:  |  Height:  |  Size: 226 B

After

Width:  |  Height:  |  Size: 226 B

View File

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 205 B

View File

Before

Width:  |  Height:  |  Size: 538 B

After

Width:  |  Height:  |  Size: 538 B

BIN
src/tycho/data/tycho.res Normal file

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -53,8 +53,7 @@ fn run_app(app: &gtk::Application) -> ResultS<()>
fn main() -> ResultS<()>
{
// get jacked, punk. opaque data structures are for nerds.
const RESOURCE_DATA: &'static [u8] =
include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/data/tycho.res"));
const RESOURCE_DATA: &'static [u8] = include_bytes!("data/tycho.res");
let mut static_resource =
gio_sys::GStaticResource{data: RESOURCE_DATA.as_ptr(),