-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
170 lines (137 loc) · 6.45 KB
/
Cargo.toml
File metadata and controls
170 lines (137 loc) · 6.45 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#cargo-features = ["profile-rustflags"]
[workspace]
members = [
"crates/*",
]
resolver = "3"
[workspace.package]
version = "0.6.30"
authors = ["Masato TOYOSHIMA", "phoepsilonix <phoepsilonix@gmail.com>"]
edition = "2024"
rust-version = "1.90.0"
homepage = "https://github.com/phoepsilonix/dict-to-mozc"
documentation = "https://github.com/phoepsilonix/dict-to-mozc"
repository = "https://github.com/phoepsilonix/dict-to-mozc"
license = "MIT"
[workspace.dependencies]
lib-dict-to-mozc = { path = "./crates/dict-to-mozc" }
argh = { version = "0.1.14", default-features = false, features = [ "help" ] }
csv = { version = "1.4.0", default-features = true }
kanaria = { version = "0.2.0", default-features = false }
lazy-regex = { version = "3.6.0", default-features = false, features = [ "perf-dfa", "unicode" ] }
indexmap = { version = "^2.13", default-features = false, features = [ ] }
#indexmap = { version = "^2.4", default-features = false, features = [ ] }
#indexmap = { version = "^2.4", default-features = false, features = [ "std" ] }
mimalloc-rust = { version = "0.2.1", default-features = false }
hashbrown = { version = "^0.16", default-features = false, features = [ "allocator-api2", "default-hasher", "raw-entry"] }
#hashbrown = { version = "^0.16", default-features = false, features = [ "allocator-api2", "raw-entry"] }
#hashbrown = { version = "^0.16", default-features = true }
#hashbrown = { version = "^0.15", default-features = false, features = [ "allocator-api2", "default-hasher", "raw-entry"] }
#hashbrown = { version = "^0.14", default-features = false, features = [ "ahash", "inline-more"] }
#hashbrown = { version = "^0.14", default-features = false, features = [ "ahash" ] }
#bitflags = "=2.7"
foldhash = { version = "=0.2", default-features = false, features = [ "std" ] }
#foldhash = { version = "=0.2", default-features = false, features = [ ] }
#fxhash = { version = "^0.2", default-features = true, features = [] }
#rustc-hash = "2.1.1"
#wyhash = { version = "0.6.0", features = [ "mum32bit" ] }
#ahash = "0.8.12"
#auto-allocator = { version = "*", features = ["secure"], git = "https://github.com/phoepsilonix/auto-allocator.git" }
#auto-allocator = { version = "*", features = [], git = "https://github.com/phoepsilonix/auto-allocator.git" }
auto-allocator = { version = "*", default-features = false, features = ["_mimalloc", "_no_info"] }
#auto-allocator = { version = "*", default-features = false, features = ["_mimalloc_rust", "_no_info"] }
snmalloc-rs = { version = "0.3", default-features = true, features = ["lto"] }
mimalloc = { version = "0.1.48" }
smmalloc = { version = "7.6.4" }
tcmalloc = { version = "0.3.0" }
rpmalloc = "0.2.2"
jemallocator = "0.5.4"
[profile.release]
debug = true
strip = true
overflow-checks = false
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
incremental = true
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "fat"
[workspace.metadata.release]
allow-branch = ["main"]
shared-version = true
tag = false
[package]
name = "dict-to-mozc"
edition.workspace = true
authors.workspace = true
rust-version.workspace = true
repository.workspace = true
license.workspace = true
version.workspace = true
[patch.crates-io]
#cc = { git = "https://github.com/rust-lang/cc-rs.git", rev = "966183eb651b4ea473cdb32a91120e374f42ba4a" }
#kanaria = { git = "https://github.com/samunohito/kanaria.git", rev = "9c2a6237d5a523f372b50d956671251710d5f4ac" }
# rust 2024 edition
kanaria = { git = "https://github.com/samunohito/kanaria.git", rev = "c98ea3a9af75eb198662bc1483c32201ea3c65b6" }
#snmalloc-sys = { path = "./snmalloc-sys" }
# _mimalloc or _mimalloc_rust features
#auto-allocator = { git = "https://github.com/phoepsilonix/auto-allocator.git", rev = "cba62f6e2723cadc2f87026dcfea07dcce630ac7" }
auto-allocator = { git = "https://github.com/phoepsilonix/auto-allocator.git", rev = "e5eb446d54963ade5bc12c2846225bac60616bec" }
snmalloc-rs = { git = "https://github.com/phoepsilonix/snmalloc-rs.git", rev = "a4a31eb3436a2183c0ed4da95f578c0f570ce02a" }
tcmalloc = { git = "https://github.com/phoepsilonix/tcmalloc-rs.git", rev = "7c38e8db98472e5860caa0ca6c30ad88df19f6e6" }
#tcmalloc = { path = "../tcmalloc-rs" }
#snmalloc-rs = { path = "../snmalloc-rs" }
#auto-allocator = { path = "../auto-allocator" }
[dependencies]
lib-dict-to-mozc = { workspace = true }
argh.workspace = true
mimalloc-rust = { workspace = true, optional = true, features = [] , default-features = false }
jemallocator = { workspace = true, optional = true, features = [] , default-features = true }
auto-allocator = { workspace = true, optional = true, features = [], default-features = false }
#csv.workspace = true
foldhash.workspace = true
#fxhash.workspace = true
#hashbrown.workspace = true
#indexmap.workspace = true
#kanaria.workspace = true
#lazy-regex.workspace = true
#rustc-hash.workspace = true
#wyhash.workspace = true
#ahash.workspace = true
# 1st(best)
indexmap = { version = "^2.13", features = [], default-features = false }
hashbrown = { version = "^0.16" , features = [], default-features = false }
# 2nd
#indexmap = { version = "=2.5", features = [], default-features = false }
#hashbrown = { version = "=0.14" , features = [], default-features = false }
#hashbrown = { version = "^0.15" , features = [], default-features = false }
mimalloc = { workspace = true , optional = true }
tcmalloc = { workspace = true , optional = true }
smmalloc = { workspace = true , optional = true }
rpmalloc = { workspace = true , optional = true }
snmalloc-rs = { workspace = true, optional = true }
[package.metadata.release]
tag = true
tag-prefix =""
[[bin]]
name = "dict-to-mozc"
[features]
default = []
use-tcmalloc = ["dep:tcmalloc"]
use-tcmalloc-static = ["tcmalloc/bundled"]
use-auto-allocator = ["dep:auto-allocator", "auto-allocator/_mimalloc", "auto-allocator/_embedded"]
#use-auto-allocator-rs = ["dep:auto-allocator", "auto-allocator/_mimalloc_rust", "auto-allocator/_embedded"]
#use-auto-allocator-asm = ["dep:auto-allocator", "auto-allocator/_mimalloc_rust", "auto-allocator/_embedded", "auto-allocator/_mimalloc_asm"]
use-snmalloc = ["snmalloc-rs/lto"]
use-snmalloc-static = ["snmalloc-rs/lto", "snmalloc-rs/build_cc", "snmalloc-rs/static-link"]
use-snmalloc-cc = ["snmalloc-rs/lto", "snmalloc-rs/build_cc" ]
use-mimalloc = ["dep:mimalloc"]
use-mimalloc-rs = ["dep:mimalloc-rust"]
unstable = [ "unstable-mimalloc-rs" ]
unstable-mimalloc-rs = [ "mimalloc-rust/unstable" ]
use-jemalloc = ["dep:jemallocator"]
use-smmalloc = ["dep:smmalloc"]
use-rpmalloc = ["dep:rpmalloc"]