From 51eed5697ab78a86db35e71596d580693c8fe6d8 Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 1 Nov 2023 17:20:53 +0100 Subject: [PATCH] feat(keymaps): Put keymaps into a separate crate --- keymaps/.gitignore | 6 ++++++ keymaps/Cargo.toml | 8 ++++++++ {src/app/keymappings => keymaps/src}/key/chars.rs | 0 {src/app/keymappings => keymaps/src}/key/key.rs | 0 {src/app/keymappings => keymaps/src}/key/key_value.rs | 0 {src/app/keymappings => keymaps/src}/key/keys.rs | 0 {src/app/keymappings => keymaps/src}/key/mod.rs | 0 src/app/keymappings/mod.rs => keymaps/src/lib.rs | 0 {src/app/keymappings => keymaps/src}/trie.rs | 0 9 files changed, 14 insertions(+) create mode 100644 keymaps/.gitignore create mode 100644 keymaps/Cargo.toml rename {src/app/keymappings => keymaps/src}/key/chars.rs (100%) rename {src/app/keymappings => keymaps/src}/key/key.rs (100%) rename {src/app/keymappings => keymaps/src}/key/key_value.rs (100%) rename {src/app/keymappings => keymaps/src}/key/keys.rs (100%) rename {src/app/keymappings => keymaps/src}/key/mod.rs (100%) rename src/app/keymappings/mod.rs => keymaps/src/lib.rs (100%) rename {src/app/keymappings => keymaps/src}/trie.rs (100%) diff --git a/keymaps/.gitignore b/keymaps/.gitignore new file mode 100644 index 0000000..72fc7e3 --- /dev/null +++ b/keymaps/.gitignore @@ -0,0 +1,6 @@ +# build +/target +/result + +# lua_macros is a library +Cargo.lock diff --git a/keymaps/Cargo.toml b/keymaps/Cargo.toml new file mode 100644 index 0000000..3415502 --- /dev/null +++ b/keymaps/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "keymappings" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/app/keymappings/key/chars.rs b/keymaps/src/key/chars.rs similarity index 100% rename from src/app/keymappings/key/chars.rs rename to keymaps/src/key/chars.rs diff --git a/src/app/keymappings/key/key.rs b/keymaps/src/key/key.rs similarity index 100% rename from src/app/keymappings/key/key.rs rename to keymaps/src/key/key.rs diff --git a/src/app/keymappings/key/key_value.rs b/keymaps/src/key/key_value.rs similarity index 100% rename from src/app/keymappings/key/key_value.rs rename to keymaps/src/key/key_value.rs diff --git a/src/app/keymappings/key/keys.rs b/keymaps/src/key/keys.rs similarity index 100% rename from src/app/keymappings/key/keys.rs rename to keymaps/src/key/keys.rs diff --git a/src/app/keymappings/key/mod.rs b/keymaps/src/key/mod.rs similarity index 100% rename from src/app/keymappings/key/mod.rs rename to keymaps/src/key/mod.rs diff --git a/src/app/keymappings/mod.rs b/keymaps/src/lib.rs similarity index 100% rename from src/app/keymappings/mod.rs rename to keymaps/src/lib.rs diff --git a/src/app/keymappings/trie.rs b/keymaps/src/trie.rs similarity index 100% rename from src/app/keymappings/trie.rs rename to keymaps/src/trie.rs