Repository navigation
Commit 28f0c33
committed
refactor(stack-encrypt)!: remove FfiValue
Nothing takes a value tree any more. A plaintext is a ValueFrame, one
value as its transport frame in a wiped buffer, and every control message
a binding sends or reads is a typed value read from, or written to, its
frame by serde (#1252, steps 1 to 3). The tests that still spelled values
as FfiValue trees were moved off it in the commits before this one, so
`dynamic::FfiValue` had no caller left.
Removed: `FfiValue`, `Utf8String`, the tree's sink types (`ValueSink`,
`ValueSeq`, `ValueMap`, `Put`, `Root`, `Element`, `Entry`),
`ValueKind::holds` and `FfiValue::kind`. `ValueKind` and
`ParseValueKindError` move into `dynamic::kind` and `FromFrameError` into
`dynamic::value_frame`; all three are still exported from `dynamic`,
unchanged. The doc examples that built an FfiValue now use Rust values
(`ValueFrame::of(34u32)`, a map) or a binding's frame bytes.
The trybuild snapshot for `plaintext_needs_encrypt` lists `&PassthroughFrame`
where it listed `&FfiValue`, the next implementor in rustc's list.
Stored records, terms and the frozen fixtures are byte for byte what they
were. Refs #1252.
BREAKING CHANGE: `stack_encrypt::dynamic::FfiValue` and the types above
are gone. Build a value as a Rust value (`ValueFrame::of`) or hand over
the frame bytes a binding sends.1 parent 37f2bd3 commit 28f0c33
15 files changed
Lines changed: 259 additions & 993 deletions
File tree
- .github
- languages/golang/encrypt/guest
- packages/stack-encrypt
- src
- dynamic
- plan
- tests
- fixtures
- ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
| 249 | + | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
288 | 287 | | |
289 | 288 | | |
290 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
291 | 303 | | |
292 | 304 | | |
293 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments