Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve config debug-ability (#4456)
* [refactor]: put new API into `iroha_config_base` Signed-off-by: Dmitry Balashov <[email protected]> * [test]: move tests Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: create foundation for `ReadConfig` derive (wip) Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: parse `default` properly Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: impl shape analysis Signed-off-by: Dmitry Balashov <[email protected]> * [test]: update stderr Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: fix macro, it kind of works! Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: improve errors Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update `iroha_config` (wip) Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update user layer, mostly Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: move `iroha_config` onto the new rails Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: lints & chores Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: fix visibility issues in data model Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: after-rebase chores Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update `iroha_core` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update the whole workspace Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: lints Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: fix cfg Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: balance trace logs Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: move high-level validations to CLI layer Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: change `custom` to `env_custom` Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: attach TOML value to report Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: enhance origin attachments Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: client cli... works? Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: rehearse errors Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: chores Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: compiler errors and lints Signed-off-by: Dmitry Balashov <[email protected]> * [test]: fix tests, validate addrs only in `release` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: internal docs, renamings, lints Signed-off-by: Dmitry Balashov <[email protected]> * [test]: fix private keys in test configs Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: allow self peer id in trusted peers Signed-off-by: Dmitry Balashov <[email protected]> * [test]: update snapshot Signed-off-by: Dmitry Balashov <[email protected]> * Apply suggestions from code review Co-authored-by: ⭐️NINIKA⭐️ <[email protected]> Signed-off-by: 0x009922 <[email protected]> * [feat]: prefix macro error Signed-off-by: Dmitry Balashov <[email protected]> * [docs]: add a note about syntactic match Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: delegate parsing to `syn::punctuated` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: use mutable reader, split `ReadingDone` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: lints Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: link false-positive issue rust-lang/rust#44752 (comment) Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: ignore report locations address #4456 (comment) Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: use `ExposedPrivateKey` Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: fix with all-features Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: chores Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: format Signed-off-by: Dmitry Balashov <[email protected]> * refactor: use stricter `TrustedPeers` struct Signed-off-by: Dmitry Balashov <[email protected]> * chore: remove extra TODO Signed-off-by: Dmitry Balashov <[email protected]> * refactor: remove `env_custom` Signed-off-by: Dmitry Balashov <[email protected]> * chore: remove extra import Signed-off-by: Dmitry Balashov <[email protected]> * revert: return `pub(crate)` vis Signed-off-by: Dmitry Balashov <[email protected]> * chore: dead import Signed-off-by: Dmitry Balashov <[email protected]> * fix: fix path to `iroha_test_config.toml` Signed-off-by: Dmitry Balashov <[email protected]> --------- Signed-off-by: Dmitry Balashov <[email protected]> Signed-off-by: 0x009922 <[email protected]> Co-authored-by: ⭐️NINIKA⭐️ <[email protected]>
- Loading branch information