-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
353 lines (236 loc) · 5.78 KB
/
Cargo.toml
File metadata and controls
353 lines (236 loc) · 5.78 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
[package]
name = "mapage"
version = "0.2.0"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "In-memory type-namespaced key value storage with GraphQL"
readme = "README.md"
repository = "https://github.com/coruscateor/mapage"
homepage = "https://coruscateor.com/projects/mapage"
keywords = ["memory", "cache", "server", "map", "storage"]
categories = ["caching"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
#async-graphql = "6.0.10"
#async-graphql-poem = "6.0.10"
tokio = { version = "1.40", features = ["macros", "rt-multi-thread"] } #, "rt", "tokio_unstable"] } #24.* #tokio = { version = "1.19.2", features = ["rt", "rt-multi-thread", "sync", "macros", "fs"] }
#poem = "1.3.*"
corlib = { path="../corlib", features = ["serde"] } #Do not remove
#corlib = "0.1.0"
#act_rusty = { path="../act_rusty" }
act_rs = { path="../act_rs", features = ["tokio"] } #Do not remove
#act_rs = "0.1.0"
#scc = "0.11.*"
scc = "2.*" #"1.0.*"
#async-trait = "0.1.57"
serde = { version = "1.0.*", features = ["derive"] } #"1.0.144"
paste = "1.0.15" #.0.11"
dashmap = "5.5.0"
cfg-if = "1.0.0"
delegate = "0.10.0"
#WebSockets
axum = "0.7.*"
fastwebsockets = { version = "0.8.*", features = ["upgrade", "with_axum", "unstable-split"] }
anyhow = "1.0.88"
hyper = "1.4.1"
hyper-util = { version = "0.1.8", features = ["tokio"] }
libsync = { path="../libsync", features = ["std", "crossbeam", "tokio"] }
crossbeam = "0.8.4"
bytes = "1.7.1"
serde_json = "1.0.1"
[features]
default = ["namespace_aml", "string_keys"]
#string_key will be changed to arc_str_keys once implemented.
#Storage Atomicity:
#aml - Atomicity Level
store_aml = [] #Concurrency is handled at the store level.
#sub_store_aml = [] #Implemented - to be removed.
namespace_aml = [] #Each namespace handles concurrency on its own.
#features with sub_store_aml:
#Maps:
#std_col_hashmap = []
#scc_hashmap = []
#scc_hashindex = []
#scc_treeindex = []
#dashmap
#defaults:
#scc_hashmap_string = []
#dashmap_string = []
scc_hashmap_namespaces = []
dashmap_namespaces = []
#User Types:
#Disabled integer _size types as they are redundant.
all_types = []
bool = []
char = []
f32 = []
f64 = []
i8 = []
i16 = []
i32 = []
i64 = []
i128 = []
#isize = []
u8 = []
u16 = []
u32 = []
u64 = []
u128 = []
#unit_value = []
#usize = []
whatever = []
#SelectedType = []
#SelectedType_OI_Only = []
#SelectedTypeIO = [] #May be re-implemented
#Collections
string = []
vec_bool = []
#vec_char = []
vec_f32 = []
vec_f64 = []
vec_i8 = []
vec_i16 = []
vec_i32 = []
vec_i64 = []
vec_i128 = []
#Vec_isize = []
#VecSelectedType = []
#vec_string = []
vec_u8 = []
vec_u16 = []
vec_u32 = []
vec_u64 = []
vec_u128 = []
#Vec_usize = []
#vec_whatever = []
#Keys:
#all_key_types_String = []
#all_key_types_Arc_String = []
string_keys = []
arc_str_keys = []
#Synchronisation Strategy
#act_rs_mac_task_actor = []
#act_rs_task_actor = []
#act_rs_thread_actor = []
#mutex = []
#rw_lock = []
#Channels...
#Thread Pooling
#use_tokio...
#Vec<u8> keys?
#Key per type?
#bool keys
#bool_key_type_String = []
#bool_key_type_Arc_String = []
#char keys
#char_key_type_String = []
#char_key_type_Arc_String = []
#f32 keys
#f32_key_type_String = []
#f32_key_type_Arc_String = []
#f64 keys
#f64_key_type_String = []
#f64_key_type_Arc_String = []
#i8 keys
#i8_key_type_String = []
#i8_key_type_Arc_String = []
#i16 keys
#i16_key_type_String = []
#i16_key_type_Arc_String = []
#i32 keys
#i32_key_type_String = []
#i32_key_type_Arc_String = []
#i64 keys
#i64_key_type_String = []
#i64_key_type_Arc_String = []
#i128 keys
#i128_key_type_String = []
#i128_key_type_Arc_String = []
#isize keys
#isize_key_type_String = []
#isize_key_type_Arc_String = []
#SelectedType keys
#SelectedType_key_type_String = []
#SelectedType_key_type_Arc_String = []
#String keys
#String_key_type_String = []
#String_key_type_Arc_String = []
#u8 keys
#u8_key_type_String = []
#u8_key_type_Arc_String = []
#u16 keys
#u16_key_type_String = []
#u16_key_type_Arc_String = []
#u32 keys
#u32_key_type_String = []
#u32_key_type_Arc_String = []
#u64 keys
#u64_key_type_String = []
#u64_key_type_Arc_String = []
#u128 keys
#u128_key_type_String = []
#u128_key_type_Arc_String = []
#usize keys
#usize_key_type_String = []
#usize_key_type_Arc_String = []
#Whatever keys
#Whatever_key_type_String = []
#Whatever_key_type_Arc_String = []
#
#Arc:
#std_sync_arc
#Sync Types:
#std_sync_mutex = []
#std_sync_rwlock = []
#crossbeam_sync_shardedlock = []
#parking_lot_fairmutex = []
#parking_lot_mutex = []
#parking_lot_rwlock = []
#tokio_sync_mutex = []
#tokio_sync_rwlock = []
#tokio_sync_semaphore
#Actrusty Actors:
#st_io_actor = []
#ts_io_actor = []
#ttsb_io_actor = []
#Map Types:
#std_col_hashmap = []
#scc_hashmap = []
#scc_hashindex = []
#scc_treeindex = []
#dashmap = []
#Atomics
#std_sync_atomics #atomics by default (where applicable)
#std_sync_atomic_bool
#std_sync_atomic_i8
#std_sync_atomic_i16
#std_sync_atomic_i32
#std_sync_atomic_i64
#std_sync_atomic_isize
### atomic_ptr
#std_sync_atomic_u8
#std_sync_atomic_u16
#std_sync_atomic_u32
#std_sync_atomic_u64
#std_sync_atomic_usize
#Features will comprise of combinations of the above
###
#specifics
#sub_store features:
#<sync_type or map type>_<user type>
#Value Type Features:
#<actor type>_value
#User Type Specific Actor Value Types:
#<actor type>_<user type>_value
#arc_value
#arc_<user type>_value
#Applicable only to collections and atomics
#When used with collections creates a sitiaution where the collection is stored in the arc and replaced when it needs to be mutated.
#Atomics:
#atomic_value
#atomic_<user type>_value
#Applicable only to user types which have std atomic counterparts
#sync type values:
#<sync type>_value
#User Type Specific Actor Value Types:
#<sync type>_<user type>_value