Commit graph

7666 commits

Author SHA1 Message Date
bunnie
043dfd84ae update formatting to latest nightly rules 2024-09-24 01:49:45 +08:00
bunnie
5fb60a4958
Merge pull request #584 from betrusted-io/fix-test
fix broken factory test
2024-09-24 00:15:30 +08:00
bunnie
f248be981e fix broken factory test 2024-09-24 00:14:52 +08:00
bunnie
32c5bad47c
Merge pull request #583 from betrusted-io/tts-fixup
fix up a tts bug
2024-09-23 23:03:05 +08:00
bunnie
a8f2e9da27 fix up a tts bug 2024-09-23 23:02:32 +08:00
bunnie
2658c9694c
Merge pull request #575 from betrusted-io/rkyv-0.8-migration
Rkyv 0.8 migration
2024-09-23 22:44:30 +08:00
bunnie
e68fde8e2b update to use new flat-ipc API 2024-09-23 22:42:24 +08:00
bunnie
67e0004f73
Merge branch 'main' into rkyv-0.8-migration 2024-09-23 22:32:34 +08:00
bunnie
9c2ee16175 update xous-ipc pins 2024-09-23 22:32:06 +08:00
bunnie
f494da21cc absorb new xous-ipc version 2024-09-23 22:05:50 +08:00
bunnie
0ecfa80bac change rkyv behavior in xous-ipc from panic to failure
this allows for more graceful error handling in case of
serialization failures
2024-09-23 22:01:02 +08:00
bunnie
21c494a129
Merge pull request #581 from betrusted-io/xobs/flatipc-0.1.2
flatipc: release 0.1.2
2024-09-23 22:00:08 +08:00
Sean Cross
8e27dce59c flatipc: release 0.1.2
This releases flatipc 0.1.2 with more documentation and a new
`Ipc::from_memory_message()` call to reconstitute an object from a
xous::MemoryMessage.

Signed-off-by: Sean Cross <sean@xobs.io>
2024-09-23 19:32:54 +08:00
bunnie
047ffe31e9 add release notes 2024-09-23 19:02:49 +08:00
bunnie
2e9b19d62d fail, don't panic on serialization failure
this allows us to handle the error. probably should propagate
on to xous-ipc
2024-09-23 19:02:19 +08:00
bunnie
8cd1cef679 cleanup bulk read on PDDB
we don't have to pass a "size" field anymore; since we're end-offset
from pos, just pass pos and use that to chain records.
2024-09-23 18:07:50 +08:00
bunnie
921be1cf8b add bounds checking to a TextView string length
Before xous-ipc's fixed-length string guaranteed this thing
fit into a single page. Now, we can send potentially unbounded
amounts of text between servers.

I don't think it makes sense to send more than a few k of text to
render on the screen at once, given our screen sizes, so I've added
a patch that truncates the text to the previous length that things
would truncate to.

The behavior is the same as before, except that you will
over-allocate memory on the heap in the sending process
as you shove more string data into a TextView than can be rendered.
Previously, the TextView would just truncate the data and discard
the data.

The truncation happens at the point where you try to hand the
record off to another process, so, one could in theory try
to make this recoverable by adding a layer that splits the
textview into more manageable chunks or pages the data, but that
is an exercise for another day.
2024-09-23 17:35:27 +08:00
bunnie
e61a2e3238 reformat shellchat with the latest alphabetization rules 2024-09-23 17:22:47 +08:00
bunnie
3a9a7ebf02 length of a record stored is the pos field for rkyv-to-pddb
prior use of `rkyv` reserves two bytes to record `pos` pre-pended
to the rkyv record

the new rkyv works without having to do that because it indexes
the rkyv data off the end of the stored records. Thus, all you
need to know is the total length of the byte slice that stores
the serialized data. This is available as the return argument
when you read a PDDB key, so we don't have to explicitly store it
anymore.
2024-09-23 17:01:13 +08:00
bunnie
048e8d8373 mtxchat port to xous-ipc 0.10 2024-09-23 17:00:53 +08:00
bunnie
c699e06c5a port rkyv ser/de usage in mtxchat 2024-09-23 17:00:16 +08:00
bunnie
3ce6baa202 cleanup chat-test 2024-09-23 16:41:43 +08:00
bunnie
1ec66137be port cramium target to xous-ipc 0.10 2024-09-23 14:35:51 +08:00
bunnie
7ea1400843 fixup cram-console for xous-ipc 0.10 2024-09-23 14:31:00 +08:00
bunnie
553f98f7f2 port apps/mtxcli to xous-ipc 0.10 2024-09-23 14:30:46 +08:00
bunnie
4239176bec cleanup warning 2024-09-23 14:25:59 +08:00
bunnie
d581bd4a33 port apps/repl to xous-ipc 0.10 2024-09-23 14:25:05 +08:00
bunnie
f4a4dfbc53 reflect flatipc usage in lockfile 2024-09-23 14:19:35 +08:00
bunnie
e5bd1cffb9 port apps/vault to use xous-ipc 0.10 2024-09-23 14:19:13 +08:00
bunnie
cdc841124d fix a xous-ipc change but now conflated with reformatting 2024-09-23 14:18:45 +08:00
bunnie
ec43c4622c print the debug info for trng pump 2024-09-23 14:18:16 +08:00
bunnie
9ebb61c68c update test on cram side too 2024-09-23 14:17:56 +08:00
bunnie
e9ab865e09 port trng server to use flatipc 2024-09-23 14:17:31 +08:00
bunnie
489c614ec6 port getrandom to use flatipc 2024-09-23 14:17:10 +08:00
bunnie
cbe9aa05be redo lib api to use flatipc; has a question for xobs 2024-09-23 13:38:38 +08:00
bunnie
838bd58024 commit bumped version pins 2024-09-23 01:53:18 +08:00
bunnie
d39ca54684 lose the local patches 2024-09-23 01:47:55 +08:00
bunnie
e01326c8ee update verifier pins 2024-09-23 01:47:26 +08:00
bunnie
75954de8d6 commit the version bump 2024-09-23 01:46:25 +08:00
bunnie
bb7209508b update formatting on the published crates
not doing a reformat of the entire project to match
nightly formatting changes, but capturing the published
crates so we can maybe save a version bump later on to get
the project clean.
2024-09-23 01:43:02 +08:00
bunnie
7d69e16c39
Merge branch 'main' into rkyv-0.8-migration 2024-09-23 01:36:33 +08:00
bunnie
222f86d709
Merge pull request #579 from betrusted-io/rustfmt
Rustfmt to 2024 version
2024-09-23 01:35:46 +08:00
bunnie
e290615a80 bump lockfile while we're at it 2024-09-23 01:34:29 +08:00
bunnie
e51ad1ae73 2024 style is the least disruptive to the code base... 2024-09-23 01:34:12 +08:00
bunnie
888cd2252e
Merge branch 'main' into rkyv-0.8-migration 2024-09-23 01:23:12 +08:00
bunnie
d422bc3dc0
Merge pull request #578 from betrusted-io/rustfmt
change rustfmt to track changes in nightly
2024-09-23 01:22:54 +08:00
bunnie
80f0118ead change rustfmt to track changes in nightly
this latest change to nightly looks like it's going to wreak
havoc on the code base :(

i wish they would stabilize more formatting options, ugh.
2024-09-23 01:20:07 +08:00
bunnie
a3933a7465 formatting to new rust nightly and remove debug print 2024-09-23 01:17:45 +08:00
bunnie
2f8604299c remove test for deprecated rkyv 2024-09-23 01:17:17 +08:00
bunnie
5973e48bf4 missed a case that is in hosted mode 2024-09-23 01:16:59 +08:00