1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-19 19:45:10 +00:00
starship/src
David Knaack 2d4b183fce
refactor: replace module_config_derive with serde (#3786)
* refactor: replace module_config_derive with serde

Changes include:
* Removing `starship_module_config_derive` and replacing it with `serde::Deserialize`
* Removing `RootModuleConfig::load_config`. While potentially useful, it was only used in tests. And it would require something like `serde::DeserializeSeed` which is not derived by serde.
* Merging `RootModuleConfig` into `ModuleConfig`
* Implementing a `ValueDeserializer` that holds a reference to a `toml::Value` in `serde_utils.rs`
* Deserialization errors (invalid type) are now logged and include the current key and the struct names
* Unknown keys are now considered an error. "Did you mean?"-messages are still possible

* fix typo

Co-authored-by: Matan Kushner <hello@matchai.dev>

Co-authored-by: Matan Kushner <hello@matchai.dev>
2022-03-26 10:42:19 +01:00
..
configs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
formatter refactor: fix new clippy/compiler warnings (#3656) 2022-02-24 23:31:01 -05:00
init fix(fish): allow generating session keys in older versions of fish (#3697) 2022-03-26 10:34:46 +01:00
modules refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
test refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
bug_report.rs fix(init): Change Nushell init for nu 0.60 (#3773) 2022-03-24 15:06:24 -04:00
config.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
configure.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
context.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
lib.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
logger.rs fix(clippy): fix new clippy lints (#2939) 2021-07-29 14:27:46 -04:00
main.rs build: bump shadow to 0.10.0 & git2 to 0.14.2 (#3767) 2022-03-19 21:01:57 -04:00
module.rs feat: Add a module for C projects (#3631) 2022-03-25 00:10:19 -04:00
print.rs fix(fish): Emit clear-screen escape sequence only in left prompt (#3588) 2022-02-14 13:11:55 +01:00
segment.rs feat: Add a fill module to pad out the line (#3029) 2021-09-12 19:59:15 -04:00
serde_utils.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
utils.rs feat: Add a module for C projects (#3631) 2022-03-25 00:10:19 -04:00