Move all dependencies to a new crate which reexports all the dependencies the generated macro uses.
This way, the user only has to include the macro and this dependency crate.
Showing
... | ... | @@ -29,6 +29,7 @@ single-test-override = [ "single-test" ] |
single-test-properties = [ "single-test" ] | ||
single-test-signals = [ "single-test" ] | ||
single-test-variant = [ "single-test" ] | ||
single-test-works-in-2015 = [ "single-test"] | ||
[dependencies] | ||
glib = "0.6.0" | ||
... | ... | @@ -41,6 +42,7 @@ syn = { version="0.15.3", features=["full", "extra-traits"] } |
unicode-xid = "0.0.4" | ||
xml-rs = "0.8.0" | ||
difference = "2.0" #Used to compare a generated content with a file on disk | ||
gobject-class = { path = "./gobject-class" } | ||
[patch.crates-io] | ||
# Needed for now until https://github.com/dtolnay/syn/pull/538 is published | ||
... | ... | @@ -57,7 +59,7 @@ gobject-gen-test = { path = "./mixed_tests" } |
libc = "0.2" | ||
[workspace] | ||
members=["mixed_tests" ] | ||
members=["mixed_tests","gobject-class" ] | ||
[[test]] | ||
name = "works-in-2015" | ||
... | ... |
gobject-class/Cargo.toml
0 → 100644
gobject-class/lib.rs
0 → 100644