Currently it's required that you take mut self in order to manipulate the internal state machines. This would not allow passing an Arc/Rc to a callback since A/Rc<T> only derefs to &T and not T. The take_mut crate allows the retrieval of ownership if you have a &mut refference and as long you return T again. So Arc<Mutex<Machine> could work with callbacks and embed Nested state machies without copying.
36 lines
644 B
TOML
36 lines
644 B
TOML
[package]
|
|
authors = ["Jordan Petridis <jordanpetridis@protonmail.com>"]
|
|
build = "build.rs"
|
|
name = "hammond-gtk"
|
|
version = "0.1.0"
|
|
workspace = "../"
|
|
|
|
[dependencies]
|
|
chrono = "0.4.0"
|
|
dissolve = "0.2.2"
|
|
gdk = "0.7.0"
|
|
gdk-pixbuf = "0.3.0"
|
|
gio = "0.3.0"
|
|
glib = "0.4.1"
|
|
humansize = "1.1.0"
|
|
lazy_static = "1.0.0"
|
|
log = "0.4.1"
|
|
loggerv = "0.7.0"
|
|
open = "1.2.1"
|
|
rayon = "0.9.0"
|
|
send-cell = "0.1.2"
|
|
url = "1.6.0"
|
|
failure = "0.1.1"
|
|
failure_derive = "0.1.1"
|
|
take_mut = "0.2.0"
|
|
|
|
[dependencies.gtk]
|
|
features = ["v3_22"]
|
|
version = "0.3.0"
|
|
|
|
[dependencies.hammond-data]
|
|
path = "../hammond-data"
|
|
|
|
[dependencies.hammond-downloader]
|
|
path = "../hammond-downloader"
|