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