Commit e368bec
committed
Expose tier storage configuration across the FFI boundary
Add UniFFI-facing store abstractions and builder APIs so foreign-language
callers can configure backup and ephemeral stores when constructing nodes
with custom storage.
This introduces `FfiDynStoreTrait` as an FFI-safe equivalent of
`DynStoreTrait`, along with a Rust-side adapter that bridges foreign store
implementations into the internal dynamic store abstraction used by the
builder.
As part of this change:
- add UniFFI bindings for custom primary, backup, and ephemeral stores
- expose `Builder::set_backup_store`, `Builder::set_ephemeral_store`, and
`Builder::build_with_store` on the FFI surface
- route FFI-backed builder construction through the native dyn-store path
- move FFI IO-related types into a dedicated module
- preserve per-key write ordering across the FFI boundary
- route Rust-side sync access through the async mutation path to avoid
runtime-sensitive locking behavior1 parent 7720935 commit e368bec
File tree
7 files changed
+731
-24
lines changed- bindings
- src
- ffi
7 files changed
+731
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
35 | 57 | | |
36 | 58 | | |
37 | 59 | | |
| |||
58 | 80 | | |
59 | 81 | | |
60 | 82 | | |
| 83 | + | |
| 84 | + | |
61 | 85 | | |
62 | 86 | | |
63 | 87 | | |
| |||
73 | 97 | | |
74 | 98 | | |
75 | 99 | | |
| 100 | + | |
| 101 | + | |
76 | 102 | | |
77 | 103 | | |
78 | 104 | | |
| |||
227 | 253 | | |
228 | 254 | | |
229 | 255 | | |
| 256 | + | |
| 257 | + | |
230 | 258 | | |
231 | 259 | | |
232 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
1152 | 1154 | | |
1153 | 1155 | | |
1154 | 1156 | | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1155 | 1183 | | |
1156 | 1184 | | |
1157 | 1185 | | |
| |||
1280 | 1308 | | |
1281 | 1309 | | |
1282 | 1310 | | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1287 | 1321 | | |
1288 | | - | |
| 1322 | + | |
| 1323 | + | |
1289 | 1324 | | |
1290 | 1325 | | |
1291 | 1326 | | |
| |||
0 commit comments