romkan/keymap の設定ファイルを YAML から JSON に移行#543
Merged
Merged
Conversation
mac-akaza (Swift) で romkan/keymap を読むために、外部ライブラリ不要な JSON 形式に移行する。config.yml は引き続き YAML のまま残す。 - romkan/*.yml → romkan/*.json に変換 - keymap/default.yml → keymap/default.json に変換 - Rust コードで serde_yaml → serde_json に変更 (romkan.rs, keymap.rs) - libakaza に serde_json 依存を追加 - akaza-dict から未使用の serde_yaml 依存を削除 - README.md, akaza-conf, developers/azik.pl の参照を更新 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
serde_yaml 0.9は dtolnay がアーカイブ済みのため、依存を減らすメリットもあるconfig.ymlは引き続き YAML のまま残す(今回は romkan/keymap のみ)変更内容
romkan/*.yml→romkan/*.jsonに変換、旧ファイル削除keymap/default.yml→keymap/default.jsonに変換、旧ファイル削除romkan.rs,keymap.rsでserde_yaml::from_reader→serde_json::from_readerに変更config.rsのデフォルトパスを.jsonに更新akaza-confの GUI フィルタ・表示名を.jsonに更新libakaza/Cargo.tomlにserde_json追加akaza-dict/Cargo.tomlから未使用のserde_yaml削除README.mdのパス記載を更新テスト結果
cargo test --package libakaza: 118 + 5 passedcargo test --lib --package ibus-akaza: 32 passedcargo clippy --all-targets --all-features: warnings なしcargo fmt: 適用済み🤖 Generated with Claude Code