-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
86 lines (73 loc) · 2.34 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[package]
name = "cskk"
# Have to also change the deb package destination filename below
version = "3.1.3"
authors = ["Naoaki Iwakiri <naokiri@gmail.com>"]
license = "GPL-3.0-or-later"
edition = "2018"
readme = "README.md"
description = "C ABIから使う事を目的とした SKK(Simple Kana Kanji henkan)方式のかな漢字変換ライブラリ"
repository = "https://github.com/naokiri/cskk"
categories = ["internationalization", "text-processing"]
rust-version = "1.64"
[lib]
crate-type = ["cdylib", "lib"]
[features]
capi = []
[dependencies]
log = "^0.4.17"
xkbcommon = "^0.5.0"
bitflags = "2.2.1"
enum-display-derive = "^0.1.0"
serde = "^1.0"
serde_derive = "^1.0"
sequence_trie = { version = "^0.3.6", features = ["serde"] }
encoding_rs = "0.8"
encoding_rs_io = "0.1"
toml = "0.7.1"
thiserror = "^1.0"
regex = "^1.5"
lazy_static = "1.4"
xdg = { version = "^2.4" }
anyhow = { version = "^1.0.65" }
nom = "^7.1"
serde_with = { version = "3.0.0", features = ["macros"] }
[dev-dependencies]
env_logger = "0.10.0"
tempfile = "^3.3"
[build-dependencies]
cargo-c = "^0.9.16"
[profile.release]
strip = "debuginfo"
[package.metadata.capi]
min_version = "0.9.6"
[package.metadata.capi.library]
install_subdir = "cskk"
[package.metadata.capi.header]
name = "libcskk"
generation = true
[package.metadata.capi.pkg_config]
name = "libcskk"
description = "SKK (Simple Kana Kanji) henkan library"
[package.metadata.capi.install.data]
subdirectory = "libcskk"
asset = [{ from = "assets/**/*" }]
[package.metadata.deb]
name = "libcskk"
features = ["capi"]
section = "libdevel"
triggers-file = "deb_assets/triggers"
revision= ""
extended-description = """\
Library to deal with Japanese input method.
SKK stands for 'Simple Kana to Kanji conversion'.
"""
preserve-symlinks = true
# x86_64 specific, depends on cargo-c too.
# Includes development things like static link lib and header files too.
assets = [["assets/**/*", "usr/local/share/libcskk", "644"],
["target/x86_64-unknown-linux-gnu/release/libcskk.so", "usr/local/lib/cskk/libcskk.so.3.1.3", "755"],
["deb_assets/libcskk.*", "usr/local/lib/cskk", "777"],
["target/x86_64-unknown-linux-gnu/release/libcskk.a", "usr/local/lib/cskk/", "644"],
["target/x86_64-unknown-linux-gnu/release/cskk.pc", "usr/local/lib/pkgconfig/", "644"],
["target/x86_64-unknown-linux-gnu/release/libcskk.h", "usr/local/include/cskk/", "644"]]