Skip to content

Commit 4fa041f

Browse files
committed
glib: Enable various smallvec features
This all require a newer rustc than what smallvec depends on, but much older than glib's minimum supported Rust version. Enabling these features enables smallvec to use less space, work with any array size and provide some more const functions.
1 parent 677974a commit 4fa041f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ffi = { package = "glib-sys", path = "sys" }
3131
gobject_ffi = { package = "gobject-sys", path = "gobject-sys" }
3232
glib-macros = { path = "../glib-macros" }
3333
rs-log = { package = "log", version = "0.4", optional = true }
34-
smallvec = "1.0"
34+
smallvec = { version = "1.0", features = ["union", "const_generics", "const_new"] }
3535
thiserror = "1"
3636
gio_ffi = { package = "gio-sys", path = "../gio/sys", optional = true }
3737
memchr = "2.5.0"

0 commit comments

Comments
 (0)