From 4fa041f60cf1cbfece86b9d9bf0709f60fc5b186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 17 Apr 2023 12:15:46 +0300 Subject: [PATCH] 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. --- glib/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/Cargo.toml b/glib/Cargo.toml index 6ca08d8c6e9d..de8c41b7415b 100644 --- a/glib/Cargo.toml +++ b/glib/Cargo.toml @@ -31,7 +31,7 @@ ffi = { package = "glib-sys", path = "sys" } gobject_ffi = { package = "gobject-sys", path = "gobject-sys" } glib-macros = { path = "../glib-macros" } rs-log = { package = "log", version = "0.4", optional = true } -smallvec = "1.0" +smallvec = { version = "1.0", features = ["union", "const_generics", "const_new"] } thiserror = "1" gio_ffi = { package = "gio-sys", path = "../gio/sys", optional = true } memchr = "2.5.0"