Greg Heartsfield
b95a62bd91
wip: tests, clippy
2022-10-16 12:59:36 -05:00
Greg Heartsfield
2eee827d39
wip: debugging
2022-10-15 17:20:22 -05:00
Greg Heartsfield
c4fbfb689b
wip: return parsed cond query
2022-10-15 17:15:59 -05:00
Greg Heartsfield
eea37fbf5c
wip: validate delegation sig
2022-10-15 17:13:34 -05:00
Greg Heartsfield
66cca169f1
wip: remove unused struct
2022-10-15 16:07:29 -05:00
Greg Heartsfield
78f55f3d83
wip: test for complex conditions
2022-10-15 16:02:18 -05:00
Greg Heartsfield
487fe5260a
wip: parsing of values
2022-10-15 15:46:07 -05:00
Greg Heartsfield
9833c91470
wip: parse operator
2022-10-15 11:15:53 -05:00
Greg Heartsfield
6fea2d2ddf
wip: test cases
2022-10-15 11:07:39 -05:00
Greg Heartsfield
0ae6292c1c
wip: field parsing
2022-10-15 10:24:20 -05:00
Greg Heartsfield
cf997e0ffb
wip: parsing
2022-10-15 09:17:22 -05:00
Greg Heartsfield
e7f67c8e36
wip: regex condition parsing
2022-10-14 14:51:14 -05:00
Greg Heartsfield
b3fe03279b
wip: work on deserialization
2022-10-14 14:51:14 -05:00
Greg Heartsfield
43b738c434
wip: schema addition and structure for delegation
2022-10-14 14:51:14 -05:00
Greg Heartsfield
274c61bb72
improvement: upgrade docker images for base & builder
2022-10-13 18:42:55 -05:00
Greg Heartsfield
6eeefbcc4c
feat: quick script for making non-x86 Dockerfiles
2022-10-13 18:35:33 -05:00
Greg Heartsfield
3e8adf978f
refactor: move db migrations into isolated functions
2022-10-09 08:54:03 -05:00
Greg Heartsfield
2af5f9fbe8
fix: correct schema upgrade logic (and refactor)
...
Schema upgrades were buggy from 4->5 (the v5 would be skipped). This
change also refactors the logic slightly so that future additions can
be clearer (no need to have if and else-if combinations).
2022-10-09 08:24:01 -05:00
Greg Heartsfield
2739e49362
fix: correct future schema version detection
2022-10-08 13:15:48 -05:00
Greg Heartsfield
f9693f7ac3
fix(NIP-9): hide events received after their deletions
...
fixes: https://todo.sr.ht/~gheartsfield/nostr-rs-relay/40
2022-10-08 12:12:41 -05:00
Greg Heartsfield
8a63d88b0b
fix: prevent deletion of deletion events
2022-10-08 08:02:16 -05:00
Greg Heartsfield
a4df9445b6
test: improve port selection
2022-09-28 07:55:06 -05:00
Greg Heartsfield
92da9d71f8
feat: handle and log TERM signals
2022-09-28 07:20:31 -05:00
Greg Heartsfield
6633f8b472
feat: replace logging with tracing
2022-09-28 07:19:59 -05:00
Greg Heartsfield
93dfed0a87
refactor: misc clippy suggestions
2022-09-24 19:28:02 -05:00
Greg Heartsfield
bef7ca7e27
refactor: misc clippy suggestions
2022-09-24 09:19:16 -05:00
Greg Heartsfield
a98708ba47
refactor: misc clippy suggestions
2022-09-24 09:01:09 -05:00
Greg Heartsfield
ccf9b8d47b
refactor: remove unnecessary return types
2022-09-24 08:39:41 -05:00
Greg Heartsfield
8fa58de49a
refactor: clippy suggestions
2022-09-24 08:30:22 -05:00
Greg Heartsfield
480c5e4e58
docs: un-link NIP-22 note
2022-09-19 19:34:11 -05:00
dzdidi
5bd00f9107
docs: add refs for nostr-protocol organization
...
Signed-off-by: dzdidi <deniszalessky@gmail.com>
2022-09-19 19:26:36 -05:00
Greg Heartsfield
36b9f628c7
test: check for relay health after startup
2022-09-17 16:02:57 -05:00
Greg Heartsfield
baeb77af99
test: dynamically find open port for test relay
2022-09-17 14:36:05 -05:00
Greg Heartsfield
29b1e8ce58
refactor: move common test code into module
2022-09-17 12:37:49 -05:00
Greg Heartsfield
786a354776
test: simple integration test to start and stop relay
2022-09-11 12:54:24 -05:00
Greg Heartsfield
4fa8616c73
feat: enable use of tokio-console with diagnostics.tracing setting
...
View real-time tokio diagnostics by setting the configuration option
"diagnostics.tracing" to true.
2022-09-11 12:44:45 -05:00
Greg Heartsfield
74802522c2
improvement: do not create NIP-05 thread if feature is disabled
2022-09-11 11:01:36 -05:00
Greg Heartsfield
9ce5057af8
improvement: better log formatting
2022-09-11 10:22:01 -05:00
Greg Heartsfield
217429f538
build: add release flags, save artifacts
2022-09-11 10:21:29 -05:00
Greg Heartsfield
62a9548c27
docs: show build status for master branch only
2022-09-10 22:53:41 -05:00
Greg Heartsfield
c24dce8177
docs: add build status indicator
2022-09-10 22:48:23 -05:00
Greg Heartsfield
3503cf05ed
build: add sr.ht build manifest
2022-09-10 22:43:56 -05:00
Greg Heartsfield
8738e5baa9
improvement: upgrade multiple dependencies
...
Updating aho-corasick v0.7.18 -> v0.7.19
Updating block-buffer v0.10.2 -> v0.10.3
Updating cpufeatures v0.2.4 -> v0.2.5
Updating form_urlencoded v1.0.1 -> v1.1.0
Updating idna v0.2.3 -> v0.3.0
Removing matches v0.1.9
Updating percent-encoding v2.1.0 -> v2.2.0
Updating thiserror v1.0.33 -> v1.0.34
Updating thiserror-impl v1.0.33 -> v1.0.34
Updating tokio-util v0.7.3 -> v0.7.4
Updating ucd-trie v0.1.4 -> v0.1.5
Updating url v2.2.2 -> v2.3.1
2022-09-10 22:42:52 -05:00
Greg Heartsfield
78da92ccca
feat: advertise support for NIP-09 and NIP-12 in relay info
...
NIP-01 prefix search, and NIP-12 generic tags are no longer marked as
experimental.
NIP-11 relay info advertises NIP-09 event deletion and NIP-12 generic
tag search support.
2022-09-10 20:45:09 -05:00
Greg Heartsfield
72f1c19b21
feat(NIP-22): advertise support for event created_at limits
...
The `reject_future_limits` option can now be disabled, and is by
default.
NIP-11 advertises support for created_at limits.
The message for future-dated events has been modified, to be closer to
the recommended example in the NIP.
2022-09-10 20:40:10 -05:00
Greg Heartsfield
283967f8cc
docs: reference NIP-28 channel
2022-09-10 19:45:23 -05:00
Greg Heartsfield
08b011ad07
feat: ensure that WAL is truncated after checkpoint
2022-09-10 19:18:57 -05:00
Greg Heartsfield
2b03f11e5e
refactor: remove global/singleton settings object
2022-09-06 06:12:07 -05:00
Greg Heartsfield
e48bae10e6
feat: support in-memory SQLite database
2022-09-06 06:06:01 -05:00
Greg Heartsfield
8774416b92
refactor: move nostr server into library
2022-09-06 05:56:04 -05:00