Skip to content

Commit

Permalink
Merge pull request #666 from imobachgs/better-agama-derive
Browse files Browse the repository at this point in the history
Better Settings derive macro
  • Loading branch information
imobachgs authored Aug 3, 2023
2 parents 57d328b + 47e76df commit 9c7a6ad
Show file tree
Hide file tree
Showing 20 changed files with 452 additions and 246 deletions.
55 changes: 32 additions & 23 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ members = [
"agama-dbus-server",
"agama-derive",
"agama-lib",
"agama-locale-data"
]
"agama-locale-data",
"agama-settings"
]
1 change: 1 addition & 0 deletions rust/agama-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ edition = "2021"
[dependencies]
clap = { version = "4.1.4", features = ["derive"] }
agama-lib = { path="../agama-lib" }
agama-settings = { path="../agama-settings" }
serde = { version = "1.0.152" }
serde_json = "1.0.91"
serde_yaml = "0.9.17"
Expand Down
2 changes: 1 addition & 1 deletion rust/agama-cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use crate::error::CliError;
use crate::printers::{print, Format};
use agama_lib::connection;
use agama_lib::install_settings::{InstallSettings, Scope};
use agama_lib::settings::{SettingObject, SettingValue, Settings};
use agama_lib::Store as SettingsStore;
use agama_settings::{settings::Settings, SettingObject, SettingValue};
use clap::Subcommand;
use convert_case::{Case, Casing};
use std::str::FromStr;
Expand Down
4 changes: 2 additions & 2 deletions rust/agama-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ proc-macro = true

[dependencies]
proc-macro2 = "1.0.51"
quote = "1.0.23"
syn = "1.0.107"
quote = "1.0"
syn = "2.0"
Loading

0 comments on commit 9c7a6ad

Please sign in to comment.