From 81acc176ed731b1311be0c4bfdd3b95e9b17c194 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Wed, 3 May 2023 20:15:37 +0100 Subject: [PATCH] build: enable support for `ron` config lang --- Cargo.lock | 24 +++++++++++++++++++++--- Cargo.toml | 5 +++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b4e15c3..8f0ebba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -251,6 +251,12 @@ dependencies = [ "rustc-demangle", ] +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + [[package]] name = "base64" version = "0.21.0" @@ -2344,7 +2350,7 @@ version = "0.11.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27b71749df584b7f4cac2c426c127a7c785a5106cc98f7a8feb044115f0fa254" dependencies = [ - "base64", + "base64 0.21.0", "bytes", "encoding_rs", "futures-core", @@ -2375,6 +2381,17 @@ dependencies = [ "winreg", ] +[[package]] +name = "ron" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300a51053b1cb55c80b7a9fde4120726ddf25ca241a1cbb926626f62fb136bff" +dependencies = [ + "base64 0.13.1", + "bitflags 1.3.2", + "serde", +] + [[package]] name = "rustc-demangle" version = "0.1.22" @@ -3186,12 +3203,13 @@ checksum = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" [[package]] name = "universal-config" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dae262d0546bed6c0955faad12c07ec989768c2550643609410178fddb39909" +checksum = "923efc70bfb900a20e1c86fa462fad94c336ef212de25589ef9924fb5e6cd2b6" dependencies = [ "dirs 5.0.0", "libcorn", + "ron", "serde", "serde_json", "serde_yaml", diff --git a/Cargo.toml b/Cargo.toml index 25480a4..0260ad6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,11 +20,12 @@ default = [ http = ["dep:reqwest"] upower = ["upower_dbus", "zbus", "futures-lite"] -"config+all" = ["config+json", "config+yaml", "config+toml", "config+corn"] +"config+all" = ["config+json", "config+yaml", "config+toml", "config+corn", "config+ron"] "config+json" = ["universal-config/json"] "config+yaml" = ["universal-config/yaml"] "config+toml" = ["universal-config/toml"] "config+corn" = ["universal-config/corn"] +"config+ron" = ["universal-config/ron"] clipboard = ["nix"] @@ -64,7 +65,7 @@ notify = { version = "5.0.0", default-features = false } wayland-client = "0.29.5" wayland-protocols = { version = "0.29.5", features = ["unstable_protocols", "client"] } smithay-client-toolkit = { version = "0.16.0", default-features = false, features = ["calloop"] } -universal-config = { version = "0.3.0", default_features = false } +universal-config = { version = "0.4.0", default_features = false } lazy_static = "1.4.0" async_once = "0.2.6"