oxalica
73eb441a26
refactor(*): use term msg
to replace item
...
- `Msg` or `msg` is now the canonical term for the substructure in a
room. It includes a `chat` subtype and (in the future) other
administration subtypes like member joining or leaving.
- `Message` or `message` can used in human oriented context like docs
and comments, but only when it is unambiguous.
- `message` is not chosen in code because it's hard to type (at least
for me!), and have ambiguous meaning of:
- "Human readable text" in context of `ApiError`'s field.
- "A unit of data transfer, datagram" in context of WebSocket Message.
- `item` is not chosen because it is overly generic.
2024-09-13 03:32:11 -04:00
oxalica
98b2df2fdf
feat(blahd): impl socket activation integration
...
This also allows arbitrary listening fd include UNIX domain sockets, via
environment variables as sd_listen_fds(3).
2024-09-11 13:17:52 -04:00
oxalica
1e944ead31
feat: impl basic peer chat
2024-09-10 12:26:37 -04:00
oxalica
4f48b390f7
feat(webapi): include member_permission
in RoomMetadata
...
This is currently only included by `room_list` endpoint with
authentication.
2024-09-10 09:33:59 -04:00
oxalica
5eeb12c294
test(webapi): test last seen item
2024-09-10 09:20:32 -04:00
oxalica
74c6fa6f6a
refactor(webapi): hoist RoomMetadata
to blah_types
and rename last_chat
to last_item
2024-09-10 09:19:15 -04:00
oxalica
c0ec429c24
test(webapi): test room item posting and listing
2024-09-10 08:19:44 -04:00
oxalica
35b5aace08
refactor(tests): simplify and rename
2024-09-10 08:19:44 -04:00
oxalica
199985c6a2
build(toolchain),ci: switch to rust 1.82-beta for now
...
`precise_capturing` has no workaround but we need it in tests. The main
crate should still compile under stable rustc, which is enforced by CI.
2024-09-10 06:56:08 -04:00
oxalica
0ac841e6fa
refactor: move types crate into blahd-types
subpackage
2024-09-10 03:47:41 -04:00
oxalica
3bb6d1456d
Enforce lint reasons
2024-09-10 01:29:21 -04:00
oxalica
61850aa1ed
Make mock rng a fixture to allow dyn Rng
2024-09-10 01:29:21 -04:00
oxalica
e40ec6a324
Add tests for room join/leave and fix response status code
2024-09-10 01:29:21 -04:00
oxalica
5cd45232f4
Enable more local logging and disable dependencies'
2024-09-10 01:29:21 -04:00
oxalica
ff5b7e60a7
Add tests for room create/read and fix incorrect foreign keys
2024-09-10 01:29:21 -04:00
oxalica
c5263c607c
Split out socket config and switch back to toml
crate
...
basic-toml does not support externally-tagged enum yet.
See: https://github.com/dtolnay/basic-toml/issues/8
2024-09-10 01:29:21 -04:00
oxalica
4f0f1405dc
Librarify blahd for testing
2024-09-10 01:29:21 -04:00