mirror of
https://github.com/mii443/akaza.git
synced 2025-12-03 02:58:21 +00:00
split akaza-conf module
This commit is contained in:
9
Cargo.lock
generated
9
Cargo.lock
generated
@@ -22,6 +22,13 @@ dependencies = [
|
||||
"memchr",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "akaza-conf"
|
||||
version = "0.1.7"
|
||||
dependencies = [
|
||||
"gtk4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "akaza-data"
|
||||
version = "0.1.7"
|
||||
@@ -939,12 +946,12 @@ dependencies = [
|
||||
name = "ibus-akaza"
|
||||
version = "0.1.7"
|
||||
dependencies = [
|
||||
"akaza-conf",
|
||||
"anyhow",
|
||||
"cc",
|
||||
"clap 4.1.1",
|
||||
"clap-verbosity-flag",
|
||||
"env_logger",
|
||||
"gtk4",
|
||||
"ibus-sys",
|
||||
"kelp",
|
||||
"libakaza",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
[workspace]
|
||||
members = ["libakaza", "marisa-sys", "ibus-akaza", "ibus-sys", "akaza-data"]
|
||||
members = ["libakaza", "marisa-sys", "ibus-akaza", "ibus-sys", "akaza-data", "akaza-conf"]
|
||||
|
||||
9
akaza-conf/Cargo.toml
Normal file
9
akaza-conf/Cargo.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "akaza-conf"
|
||||
version = "0.1.7"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
gtk4 = "0.5.5"
|
||||
|
||||
5
akaza-conf/src/bin/akaza-conf.rs
Normal file
5
akaza-conf/src/bin/akaza-conf.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use akaza_conf::conf::open_configuration_window;
|
||||
|
||||
fn main() {
|
||||
open_configuration_window();
|
||||
}
|
||||
1
akaza-conf/src/lib.rs
Normal file
1
akaza-conf/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod conf;
|
||||
@@ -12,12 +12,12 @@ anyhow = "1.0.68"
|
||||
log = "0.4.17"
|
||||
libakaza = { path = "../libakaza" }
|
||||
ibus-sys = { path = "../ibus-sys" }
|
||||
akaza-conf = { path = "../akaza-conf" }
|
||||
env_logger = "0.10.0"
|
||||
clap = { version = "4.1.1", features = ["derive"] }
|
||||
clap-verbosity-flag = "2.0.0"
|
||||
kelp = "0.4.0"
|
||||
regex = "1"
|
||||
gtk4 = "0.5.5"
|
||||
|
||||
[build-dependencies]
|
||||
cc = "1.0.78"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use alloc::ffi::CString;
|
||||
use std::collections::HashMap;
|
||||
|
||||
use akaza_conf::conf::open_configuration_window;
|
||||
use anyhow::Result;
|
||||
use kelp::{h2z, hira2kata, z2h, ConvOption};
|
||||
use log::{debug, error, info, trace, warn};
|
||||
|
||||
@@ -22,7 +22,6 @@ use crate::context::AkazaContext;
|
||||
use crate::wrapper_bindings::{ibus_akaza_init, ibus_akaza_set_callback};
|
||||
|
||||
mod commands;
|
||||
mod conf;
|
||||
mod context;
|
||||
mod current_state;
|
||||
mod input_mode;
|
||||
|
||||
Reference in New Issue
Block a user