oxalica
5f7f383f11
build,ci: restore rust-toolchain.toml and update flakes to fix CI
2025-09-11 18:54:44 -04:00
oxalica
10c1ad5170
build,ci: specify MSRV and setup CI
2025-09-11 18:46:25 -04:00
oxalica
59a8851b32
refactor(types): allow SignExt::sign_msg_with
using a fixed nonce
...
This simplifies tests and avoid the use of deprecated `StepRng`.
2025-09-11 18:24:07 -04:00
oxalica
583f916cbe
chore,build(deps): remove rand 0.8 dependency
2025-09-11 18:12:14 -04:00
oxalica
401618c129
chore(types,blahd): fix clippy warnings
2025-09-11 17:46:16 -04:00
oxalica
b97ce5f29c
build(deps): update dependencies
...
CI / Code style (push) Waiting to run
CI / Test beta (push) Waiting to run
CI / Test stable (push) Waiting to run
CI / Flake package (push) Waiting to run
Deploy OpenAPI doc to Pages / deploy (push) Waiting to run
This includes:
- mock_instant 0.5 -> 0.6
- rstest 0.24 -> 0.26
- rusqlite 0.34 -> 0.37
- schemars 0.8 -> 1.0
- serde-inline-default 0.2 -> 1.0
- tokio-tungstenite 0.26 -> 0.27
Only schemars update needs some minor code changes.
2025-09-10 21:10:49 -04:00
oxalica
03a72736ea
contrib: reformat nix
2025-09-10 20:59:41 -04:00
oxalica
40e4a53886
build(deps): update to rand 0.9 is possible
...
CI / Code style (push) Has been cancelled
CI / Test beta (push) Has been cancelled
CI / Test stable (push) Has been cancelled
CI / Flake package (push) Has been cancelled
Deploy OpenAPI doc to Pages / deploy (push) Has been cancelled
Except for code using ed25519-dalek, since we are blocked by them.
Also tweak RNG source so only key generation uses `OsRng`. PoW nonce
generation only need unpredictability thus `ThreadRng` suffices.
See: https://github.com/dalek-cryptography/curve25519-dalek/issues/731
2025-04-15 20:28:09 -04:00
oxalica
172559973b
build(deps): update lockfile
2025-04-15 19:37:10 -04:00
oxalica
13a3b25ee8
Update nix module and config examples for socket activation
2025-03-28 14:31:49 -04:00
oxalica
348c35720b
fix(build): update rust toolchain version and flake.lock
2025-03-19 02:02:27 -04:00
oxalica
eb8c56e688
feat(blahd): support unix domain socket and rewrite tests
2025-03-19 01:57:37 -04:00
oxalica
2e0a878d56
build: migrate to Rust edition 2024
2025-03-18 11:38:19 -04:00
oxalica
37fbf5149e
build(deps): update to rusqlite 0.34, rustix 1 and fix warnings
2025-03-18 11:28:42 -04:00
oxalica
740e540b4b
build(deps): update to axum 0.8, rusqlite 0.33, tokio-tungstenite 0.26, thiserror 2
2025-02-11 00:13:56 -05:00
oxalica
b56f8897ff
build(deps): update cargo and flake lock
2024-11-27 09:00:35 -05:00
oxalica
c3842a6d3b
feat(webapi): impl identity description retrieval
2024-10-18 11:12:29 -04:00
oxalica
d5cc097e7a
contrib: check pre-commit in repo root
2024-10-18 10:27:30 -04:00
oxalica
d7ac77a1d9
chore(types): unbloat and clean up dependencies
2024-10-18 10:25:21 -04:00
oxalica
ccd5401411
refactor(chores): move rusqlite impls into dedicate mod
2024-10-18 09:46:42 -04:00
oxalica
3afa73db52
build: Rust 1.82 is released
2024-10-18 09:32:25 -04:00
oxalica
ea69062a6d
feat(types): add optional schemars support
2024-10-17 10:29:06 -04:00
oxalica
ee85112fb6
doc: add and sync code docs from OAPI
2024-10-17 10:29:06 -04:00
oxalica
71c5f038fa
ci,contrib: check unused deps via cargo-machete
2024-10-16 06:22:54 -04:00
oxalica
0bfdad3877
build: update and clean dependencies
2024-10-16 06:18:52 -04:00
oxalica
9baf47963d
feat(blahd): fail on test features + release build
...
This is a best-effort check for accidental misuse of testing-only
features on release build.
2024-10-14 19:15:28 -04:00
oxalica
1c9108610d
ci,contrib: add typos and pre-commit script
2024-10-13 04:44:27 -04:00
oxalica
ba9673065a
feat(blahd): improve error response on unknown URI or method
2024-10-12 14:45:28 -04:00
oxalica
78feb1a6ab
feat(nix): enable restartIfChanged
2024-10-12 14:26:32 -04:00
oxalica
70568f1ffa
fix(types)!: fix missed rename and fix test
2024-10-12 14:21:30 -04:00
oxalica
1ecea448a2
refactor(webapi): move create-room endpoint and deprecate old one
2024-10-12 14:15:18 -04:00
oxalica
920a1cc3b9
feat(webapi): impl member information query
2024-10-12 14:14:39 -04:00
oxalica
8378c4d230
feat(webapi): impl member permission update
2024-10-12 14:14:39 -04:00
oxalica
ad4a38cf43
feat(blahd): impl non-self member removal
2024-10-12 14:14:39 -04:00
oxalica
a8c29cb9b2
refactor(blahd): prefer newtype NoContent
2024-10-12 14:14:39 -04:00
oxalica
d1dfda51db
refactor(webapi): split /room/:rid/admin
endpoint and deprecate
...
Since we alraedy use `/room/:rid/member`, member CRUD can use this path
for better semantics.
The `admin` endpoint will be removed later.
2024-10-12 14:13:30 -04:00
oxalica
b8921a5485
chore(*): remove or update obsolete TODOs
2024-10-08 23:19:57 -04:00
oxalica
ff7fd9e4b2
feat(webapi): include cid
in ServerEvent::Msg
2024-10-08 21:20:20 -04:00
oxalica
814fac1974
refactor(event): decouple states from handlers and remove aux-types
2024-10-08 21:17:34 -04:00
oxalica
c611396331
fix(types): add missed default type
2024-10-05 02:41:16 -04:00
oxalica
97c0cf5844
refactor(blahd): reorg and use consistent handler names
2024-10-05 00:19:20 -04:00
oxalica
4e8124cda6
refactor(blahd,types): hoist more types into types crate
2024-10-05 00:19:05 -04:00
oxalica
719c19dc64
fix(blahd/event): do not parse close frame as message
2024-10-01 07:09:53 -04:00
oxalica
367f6d2a4b
feat(webapi): impl room member listing
2024-10-01 06:50:53 -04:00
oxalica
bc6e6c2056
refactor(webapi,types)!: make challenge type extensive
...
We may allow more challenge types other than PoW in the future, eg.
captcha. So make the relevent types more generic.
Now the challenge is returned in JSON response as a individual top-level
field `register_challenge` instead of in HTTP headers.
2024-10-01 05:26:00 -04:00
oxalica
364e517b7d
frontend: improve layout and registration
2024-09-30 19:34:22 -04:00
oxalica
76a9e501c5
doc: add server metadata API
2024-09-28 23:19:57 -04:00
oxalica
5f29b23f9d
fix(blahd): fix error message formating
2024-09-28 21:41:34 -04:00
oxalica
458f4b163f
test: test feed response and nonce invalidation
2024-09-28 21:40:14 -04:00
oxalica
31dc3e33c6
feat(types,blahd): allow using mock clock for testing
2024-09-28 21:30:42 -04:00