1 | [package] |
2 | name = "glib" |
3 | documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/" |
4 | homepage = "https://gtk-rs.org/" |
5 | authors = ["The gtk-rs Project Developers" ] |
6 | description = "Rust bindings for the GLib library" |
7 | readme = "README.md" |
8 | version = "0.18.5" |
9 | keywords = ["glib" , "gtk-rs" , "gnome" , "GUI" ] |
10 | repository = "https://github.com/gtk-rs/gtk-rs-core" |
11 | license = "MIT" |
12 | exclude = [ |
13 | "gir-files/*" , |
14 | ] |
15 | edition = "2021" |
16 | rust-version = "1.70" |
17 | |
18 | [lib] |
19 | name = "glib" |
20 | |
21 | [dependencies] |
22 | once_cell = "1.0" |
23 | libc = "0.2" |
24 | bitflags = "2.3" |
25 | futures-core = { version = "0.3" , default-features = false } |
26 | futures-task = { version = "0.3" , default-features = false } |
27 | futures-executor = "0.3" |
28 | futures-channel = "0.3" |
29 | futures-util = "0.3" |
30 | ffi = { package = "glib-sys" , version = "0.18" , path = "sys" } |
31 | gobject_ffi = { package = "gobject-sys" , version = "0.18" , path = "gobject-sys" } |
32 | glib-macros = { path = "../glib-macros" , version = "0.18" } |
33 | rs-log = { package = "log" , version = "0.4" , optional = true } |
34 | smallvec = { version = "1.0" , features = ["union" , "const_generics" , "const_new" ] } |
35 | thiserror = "1" |
36 | gio_ffi = { package = "gio-sys" , path = "../gio/sys" , version = "0.18" , optional = true } |
37 | memchr = "2.5.0" |
38 | |
39 | [dev-dependencies] |
40 | tempfile = "3" |
41 | gir-format-check = "^0.1" |
42 | trybuild2 = "1" |
43 | criterion = "0.5.1" |
44 | |
45 | [features] |
46 | default = ["gio" ] |
47 | v2_58 = ["ffi/v2_58" , "gobject_ffi/v2_58" ] |
48 | v2_60 = ["v2_58" , "ffi/v2_60" ] |
49 | v2_62 = ["v2_60" , "ffi/v2_62" , "gobject_ffi/v2_62" ] |
50 | v2_64 = ["v2_62" , "ffi/v2_64" ] |
51 | v2_66 = ["v2_64" , "ffi/v2_66" , "gobject_ffi/v2_66" ] |
52 | v2_68 = ["v2_66" , "ffi/v2_68" , "gobject_ffi/v2_68" ] |
53 | v2_70 = ["v2_68" , "ffi/v2_70" , "gobject_ffi/v2_70" ] |
54 | v2_72 = ["v2_70" , "ffi/v2_72" , "gobject_ffi/v2_72" ] |
55 | v2_74 = ["v2_72" , "ffi/v2_74" , "gobject_ffi/v2_74" ] |
56 | v2_76 = ["v2_74" , "ffi/v2_76" , "gobject_ffi/v2_76" ] |
57 | v2_78 = ["v2_76" , "ffi/v2_78" , "gobject_ffi/v2_78" ] |
58 | log = ["rs-log" ] |
59 | log_macros = ["log" ] |
60 | compiletests = [] |
61 | gio = ["gio_ffi" ] |
62 | |
63 | [package.metadata.docs.rs] |
64 | all-features = true |
65 | rustc-args = ["--cfg" , "docsrs" ] |
66 | rustdoc-args = ["--cfg" , "docsrs" , "--generate-link-to-definition" ] |
67 | |
68 | [[test]] |
69 | name = "subclass_compiletest" |
70 | required-features = ["compiletests" ] |
71 | |
72 | [[bench]] |
73 | name = "gstring" |
74 | harness = false |
75 | |