Cargo.toml 1.83 KB
Newer Older
Niko Matsakis's avatar
Niko Matsakis committed
1
[package]
2
name = "gobject-gen"
Niko Matsakis's avatar
Niko Matsakis committed
3
version = "0.1.0"
4 5 6
authors = ["Niko Matsakis <niko@alum.mit.edu>",
           "Federico Mena Quintero<federico@gnome.org>",
           "Alex Crichton <alex@alexcrichton.com>"]
7
edition = "2018"
8

9 10
[lib]
proc-macro = true
11
test = false
12

mredlek's avatar
mredlek committed
13
[features]
14 15
# If this feature is enabled, it executes the tests with the
# rust files generated during an earlier run.
mredlek's avatar
mredlek committed
16
test-generated = []
mredlek's avatar
mredlek committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
single-test = []
single-test-argument-types = [ "single-test" ]
single-test-basic = [ "single-test" ]
single-test-c_derive = [ "single-test" ]
single-test-counter_c_impl = [ "single-test" ]
single-test-drop = [ "single-test" ]
single-test-floating-refs = [ "single-test" ]
single-test-gir = [ "single-test" ]
single-test-interfaces = [ "single-test" ]
single-test-memory-layout = [ "single-test" ]
single-test-no-instance-private = [ "single-test" ]
single-test-override = [ "single-test" ]
single-test-properties = [ "single-test" ]
single-test-signals = [ "single-test" ]
single-test-variant = [ "single-test" ]
32
single-test-works-in-2015 = [ "single-test"]
33

Niko Matsakis's avatar
Niko Matsakis committed
34
[dependencies]
Antoni's avatar
Antoni committed
35 36 37
glib = "0.6.0"
glib-sys = "0.7.0"
gobject-sys = "0.7.0"
38
libc = "0.2"
39
proc-macro2 = {version = "0.4.8"}
40
quote = { version="0.6" }
41
syn = { version="0.15.3", features=["full", "extra-traits"] }
42
unicode-xid = "0.0.4"
43
xml-rs = "0.8.0"
44
difference = "2.0" #Used to compare a generated content with a file on disk
45
gobject-class = { path = "./gobject-class" }
46

47 48 49 50
[patch.crates-io]
# Needed for now until https://github.com/dtolnay/syn/pull/538 is published
syn = { git = 'https://github.com/dtolnay/syn' }

51 52 53
[build-dependencies]
cc = "1.0"

54
[dev-dependencies]
Antoni's avatar
Antoni committed
55 56
glib-sys = "0.7.0"
gobject-sys = "0.7.0"
57
gobject-gen-test = { path = "./mixed_tests" }
58
#ctest-sys = { path = "./mixed_tests/auto" }
59 60 61
libc = "0.2"

[workspace]
62
members=["mixed_tests","gobject-class" ]
63 64

[[test]]
65
name = "works-in-2015"
66
edition = "2015"