Sean Cross
66005b8b6f
xous: fix various clippy warnings
...
This stylistic cleanup fixes several clippy warnings.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-05 16:57:48 +08:00
Sean Cross
c497cd4864
Revert "remove legacy buffer/string from xous-rs"
...
This reverts commit 628be639f6 .
This file is still in use by at least one project, and will be used by
the libstd implementation.
2021-04-07 16:30:08 +08:00
bunnie
628be639f6
remove legacy buffer/string from xous-rs
2021-04-07 00:50:11 +08:00
Sean Cross
fdce58d06e
ipc: convert project to use xous-ipc
...
This rewrites the entire project so that most runnable projects now use
`xous-ipc` instead of `xous::String` where possible.
This also removes `rkyv` from the list of dependencies in `xous-rs`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:22:33 +08:00
Sean Cross
16ea102e94
xous: string: allow any stringlike thing to be used
...
Anything that can be turned into a string can now be used in
`from_str()`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:14:26 +08:00
Sean Cross
32ebee0b8f
xous: String: implement AsRef<str>
...
This allows xous Strings to be used in functions that expect to be able
to stringify arguments.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:31:59 +08:00
bunnie
2d5c1dd6db
leverage min_const_generics and cleanup
...
the spoils of a hard fought battle to refactor to rkyv 0.4.1
2021-03-18 04:00:38 +08:00
bunnie
ea8b208a15
finalize rkyv 0.4.1 refactor
2021-03-18 03:54:48 +08:00
bunnie
8fbd900a4c
Merge branch 'hardware-no-cb' into rkyv-refactor
...
Bring the two branches up to date, while also laying the groundwork
for XousServerName to be used as a native index type in xous-names
so we aren't burdening xous::String with a hasher
2021-03-17 16:06:06 +08:00
bunnie
d68e3e8cf4
an attempt to refactor to rkyv 0.4.1
...
unfortunately, it looks like deserialize requires an alloc??
2021-03-16 02:02:53 +08:00
Sean Cross
ff8a839ac0
xous: string: implement as_str() for ArchivedString
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-13 18:06:23 +08:00
bunnie
4f74ad9470
add string appending feature
2021-03-10 04:19:25 +08:00
bunnie
8a8c1e6a66
foundations for predictive text display
2021-03-08 00:57:50 +08:00
bunnie
49d6018e5e
new feature: backspace (*gasp* iknowrite?)
...
harder than it looks with utf8 and variable-width characters
2021-03-06 19:37:22 +08:00
bunnie
161b1943eb
fix push() function on string
...
didn't hnadle variable length encoding of the utf8 correctly
2021-03-06 02:55:14 +08:00
bunnie
5ea2a21d2d
tighten up APIs, implement a very 0th-order input loop
...
this is where the debugging begins of the beginning of
the API. it's like finally finding the start of a roll
of clear tape.
2021-03-04 19:02:56 +08:00
bunnie
c5e6391e22
remove mention of Sendable and the ipc.rs module
2021-02-18 02:01:11 +08:00
bunnie
0af72ffb6d
clean up Sendable references and warnings
2021-02-17 23:29:20 +08:00
Sean Cross
14f661f565
xous: remove id field from lend()
...
This argument is no longer used.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:54:08 +08:00
Sean Cross
c349345ce8
xous: get rid of most warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:40:27 +08:00
bunnie
2b003f8a7d
intermediate checkin
2021-02-16 00:28:44 +08:00
bunnie
af012c48dc
getting a little further with the port, but still crashing on a borrow message
2021-02-15 04:42:30 +08:00
bunnie
fc8290cdb4
futzing around and something is kind of working on xous-string port to rkyv
2021-02-15 00:05:42 +08:00
bunnie
4406f73539
remove usize from xous::String structure
2021-01-22 01:33:06 +08:00
bunnie
f247e557e8
now to the point of testing the general message flow in hosted mode
2021-01-19 18:58:57 +08:00
bunnie
b6efb15488
add debug trait to xous-string
2021-01-17 17:00:57 +08:00
Sean Cross
7b50d00eb8
repo: run cargo fmt
...
This reformats line endings to be consistent, and reinforces the
contents of `.gitattributes`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-03 18:31:51 +08:00
Sean Cross
08fb5e0a0b
xous: add send() to String
...
This call can be used to send a string to a Server.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:28:47 +08:00
Sean Cross
4650e865fb
xous: String: add from_message() as an initializer
...
Allow creating a `String` from a `MemoryMessage`.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 20:51:29 +08:00
Sean Cross
f149c086ef
xous: add String
...
This is a basic String that can be passed as a Message.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 11:18:48 +08:00