Commit graph

378 commits

Author SHA1 Message Date
naskya
16e88f4739
chore (backend-rs): update napi-rs dependencies 2024-06-18 09:17:32 +09:00
naskya
977a989a24
chore (backend-rs): compile for native cpu arch 2024-06-18 08:59:51 +09:00
naskya
ee933524e4
Merge branch 'develop' into iceshrimp_mastodon 2024-06-17 23:50:39 +09:00
naskya
98d14512c1
chore (backend-rs): move same process outside of a loop 2024-06-16 19:48:27 +09:00
naskya
9d9af28cb1
chore (backend-rs): prefer using as_ref & apply clippy fix 2024-06-15 07:03:52 +09:00
naskya
93fdf11cfa
chore (backend-rs): reference Options using as_ref 2024-06-15 06:54:18 +09:00
naskya
f6643325c0
Merge branch 'develop' into iceshrimp_mastodon 2024-06-12 21:18:30 +09:00
naskya
8931bc708e
test (backend-rs): minor refactoring 2024-06-12 20:00:44 +09:00
naskya
9502289d89
chore (backend-rs): remove crate-level uses 2024-06-12 03:38:31 +09:00
naskya
d824cb319a
test (backend-rs): ignore some tests in Miri 2024-06-12 03:36:47 +09:00
sup39
0cb4fbf6b4
refactor: macro-rs -> macros + macros_impl
Co-authored-by: naskya <m@naskya.net>
2024-06-12 00:53:51 +08:00
naskya
4e36d22164
refactor (backend): port publishDriveStream to backend-rs 2024-06-12 00:04:01 +09:00
naskya
e10a188751
refactor (backend): port publishNotesStream to backend-rs 2024-06-12 00:04:01 +09:00
naskya
1497fe8890
Merge branch 'develop' into iceshrimp_mastodon 2024-06-11 20:22:03 +09:00
naskya
9e6e7733a3
chore (backend-rs): improve error messages
refs:
https://rust-lang.github.io/api-guidelines/interoperability.html
https://github.com/rust-lang/project-error-handling/issues/27
2024-06-11 20:16:40 +09:00
naskya
1cc24b9c25
feature (backend-rs, macro-rs): prittify error outputs for napi export
Co-authored-by: sup39 <dev@sup39.dev>
2024-06-11 20:16:29 +09:00
naskya
8a7ccbe72d
chore (backend-rs): add idna feature flags 2024-06-11 10:23:21 +09:00
naskya
4b02dcd046
Merge branch 'develop' into iceshrimp_mastodon 2024-06-10 21:51:34 +09:00
naskya
e5448bae33
test (backend-rs): add database connection test 2024-06-10 21:44:37 +09:00
naskya
fa9643013e
chore (backend-rs, test): remove unneeded # from raw string literals 2024-06-10 21:14:29 +09:00
naskya
8c56a3256b
chore (backend-rs, test): use array instead of vector 2024-06-10 21:12:27 +09:00
naskya
b752695057
chore (backend-rs): use proper error type 2024-06-10 18:09:26 +09:00
naskya
bc7fdc5c0b
chore (backend-rs): change test names 2024-06-10 18:09:26 +09:00
naskya
581668c306
chore (backend-rs): more connection checks 2024-06-10 18:09:26 +09:00
naskya
37f9078606
chore (backend-rs): shorten doc link text 2024-06-09 21:29:41 +09:00
naskya
5948e72382
Merge branch 'develop' into iceshrimp_mastodon 2024-06-09 21:18:40 +09:00
naskya
679749a2cc
chore (backend-rs): rename modules to more comfortable names 2024-06-09 21:12:41 +09:00
naskya
870d625565
Merge branch 'develop' into iceshrimp_mastodon 2024-06-09 18:30:27 +09:00
sup39
132af64a6e
refactor (backend-rs): create all_texts macro 2024-06-09 16:34:58 +08:00
naskya
09d975bdce
chore (backend-rs): accept clippy suggestions 2024-06-09 14:02:24 +09:00
naskya
839d4c4d14
chore (backend-rs): PartialNoteToElaborate -> PartialNoteToCheckWordMute
Co-authored-by: sup39 <dev@sup39.dev>
2024-06-09 01:42:37 +09:00
naskya
9f16c00f0c
chore (backend-rs): use Arc for antenna cache 2024-06-09 01:13:05 +09:00
naskya
73461617ef
Merge branch 'develop' into iceshrimp_mastodon 2024-06-07 22:49:33 +09:00
naskya
00e9f0ad48
chore (backend-rs, minor): fix code style 2024-06-07 22:46:46 +09:00
naskya
b9f9e62079
chore (backend-rs): be more specific about error variants 2024-06-07 22:34:45 +09:00
naskya
0839fe27b2
refactor (backend-rs): save nodeinfo cache directly 2024-06-07 22:21:53 +09:00
naskya
74e3279361
Merge branch 'develop' into iceshrimp_mastodon 2024-06-07 16:12:06 +09:00
naskya
4a42579695
v20240607 2024-06-07 16:06:51 +09:00
naskya
6d237e98b8
chore: fix link 2024-06-07 14:02:16 +09:00
naskya
2c54bc3364
remove queries to scheduled_note table 2024-06-07 08:39:57 +09:00
naskya
16f26bc6d7
Merge branch 'develop' into iceshrimp_mastodon 2024-06-07 08:07:24 +09:00
naskya
d6bd3af8a9
Merge branch 'develop' into refactor/scheduled-posts 2024-06-07 07:11:46 +09:00
naskya
b79e15add5
Merge branch 'develop' into iceshrimp_mastodon 2024-06-06 17:18:01 +09:00
naskya
5ff6003c6e
fix (backend-rs): fix doctest 2024-06-06 17:17:51 +09:00
naskya
c92ef5796a
Merge branch 'develop' into iceshrimp_mastodon 2024-06-06 17:15:53 +09:00
naskya
7c32f682d4
chore: update auto-generated file 2024-06-06 17:10:41 +09:00
naskya
64088819be
chore (backend-rs): update build script 2024-06-06 17:10:41 +09:00
naskya
8fd3f82d0b
chore (backend-rs): update comment 2024-06-06 17:10:40 +09:00
naskya
b6c16b4e29
chore (backend-rs): fix doc link 2024-06-06 17:10:40 +09:00
naskya
308ecec341
chore: format 2024-06-06 17:10:40 +09:00
naskya
40e5bf45bd
chore (backend-rs): use async HTTP requests 2024-06-06 17:10:40 +09:00
naskya
7413866885
chore (backend-rs): change function names 2024-06-06 17:10:39 +09:00
naskya
4390dfcbfb
perf (backend): store antenna cache in memory 2024-06-06 17:10:39 +09:00
naskya
7e2493b257
refactor (backend): drop support for MK- environment variables 2024-06-06 17:10:39 +09:00
naskya
97765209a2
chore (backend-rs): organize imports 2024-06-06 17:10:39 +09:00
naskya
642c4cb2c7
refactor (backend-rs): remove strum derives 2024-06-06 17:10:39 +09:00
naskya
f479ffb0e5
chore (backend-rs): refactor storage_usage function 2024-06-06 17:10:38 +09:00
naskya
e9d31687f9
chore (backend-rs): remove unused derive 2024-06-06 17:10:38 +09:00
naskya
fc590c1492
chore (backend-rs): use ws or wss for WebSocket 2024-06-06 17:10:38 +09:00
naskya
b111e63953
chore (backend-rs): prefer unwrap_or_else 2024-06-06 17:10:35 +09:00
naskya
167d89e03e
Merge branch 'develop' into refactor/scheduled-posts 2024-06-06 09:55:57 +09:00
naskya
d0619a6066
fix: overlooked invalid push subscription branch
should have done in abc653eb21
2024-06-06 08:33:48 +09:00
naskya
abc653eb21
chore: unsubscribe invalid push subscriptions 2024-06-06 08:29:53 +09:00
naskya
370aad5982
chore: make the code a bit more readable 2024-06-06 08:01:02 +09:00
naskya
9d34117124
Merge branch 'develop' into iceshrimp_mastodon 2024-06-06 07:35:35 +09:00
naskya
95b860e820
chore (backend-rs): fetch_meta -> local_server_info 2024-06-06 07:30:13 +09:00
Eana Hufwe
7cf612f9f8 fix(backend-rs): update padding logic to accomodate non-ASCII payload 2024-06-05 20:30:41 +00:00
naskya
be894399a5
Merge branch 'develop' into iceshrimp_mastodon 2024-06-05 12:33:48 +09:00
naskya
28cfaad330
perf (backend): always use cache in fetch_meta 2024-06-05 12:30:05 +09:00
naskya
219131ef6f
chore (backend-rs): return None if the cached value is invalid 2024-06-05 08:36:39 +09:00
naskya
6207e4c014
chore: make subscription types enum 2024-06-05 07:14:13 +09:00
naskya
fedc51832a
Merge branch 'develop' into iceshrimp_mastodon 2024-06-05 05:25:08 +09:00
naskya
fe685c36b9
chore: format 2024-06-04 10:52:26 +09:00
naskya
6f6cf0cc88
chore (backend): show less unhelpful slow query warnings 2024-06-04 10:50:41 +09:00
naskya
e87dae896b
fix (backend-rs): use the exact same time for id and created_at 2024-06-03 08:23:58 +09:00
naskya
98d7eac51b
chore (backend-rs): use sea_orm::prelude 2024-06-03 08:20:39 +09:00
naskya
4e8f0c2e85
chore: update auto-generated file 2024-06-02 03:53:58 +09:00
naskya
c7e1ea48a4
Merge branch 'develop' into iceshrimp_mastodon 2024-06-01 23:00:43 +09:00
naskya
8293ed8e87
chore (backend-rs): more documents on NodeInfo 2024-06-01 11:25:20 +09:00
naskya
ecefb20ba7
Merge branch 'develop' into iceshrimp_mastodon 2024-06-01 08:35:44 +09:00
naskya
23c8636129
chore (backend-rs, macro-rs): fix comment style 2024-06-01 02:23:58 +09:00
naskya
3407e4b395
chore (backend-rs): address cargo doc warning 2024-06-01 02:04:02 +09:00
naskya
7c95c65a7c
Merge branch 'develop' into iceshrimp_mastodon 2024-05-31 21:48:03 +09:00
naskya
9ad284bd67
chore (backend-rs): rename partial note structs 2024-05-31 21:42:59 +09:00
naskya
2e44357665
chore (backend-rs): remove unneeded serde derives 2024-05-31 21:28:53 +09:00
naskya
3b42d25ee8
chore: DatabaseConnection -> DbConn 2024-05-31 06:19:14 +09:00
naskya
af2b19709e
chore: handle a bit more errors 2024-05-31 06:17:13 +09:00
naskya
76a0e5fa28
Merge branch 'develop' into iceshrimp_mastodon 2024-05-30 23:07:40 +09:00
naskya
a2555fc65d
chore: minimize Rust dependencies
It is unclear if this is worth the effort to manage
(so this may be reverted later) but at least it seems
we could remove a bunch of lines from the lockfile
by removing unused feature flags.
2024-05-30 19:27:05 +09:00
naskya
6209fdd242
Merge branch 'develop' into iceshrimp_mastodon 2024-05-30 07:11:44 +09:00
naskya
890ca846d0
chore (backend-rs): documents, organize exports, typo fixes 2024-05-30 07:07:01 +09:00
naskya
8741bda5df chore (backend-rs): don't use unsafe unwrap() in examples 2024-05-29 18:30:10 +00:00
naskya
682bea134e chore (backend-rs): add comments 2024-05-29 18:29:39 +00:00
naskya
20607acc1b dev: update editorconfig 2024-05-29 18:29:29 +00:00
naskya
4624911df8 chore: regenerate auto-generated files 2024-05-29 18:29:29 +00:00
naskya
a0c31ddd47 chore (backend-rs): address cargo doc warning 2024-05-29 18:29:29 +00:00
naskya
575ccd0e29 test (backend-rs): add timestamp check 2024-05-29 18:29:29 +00:00
naskya
4ad09b5ae2 fix: Maser push notifications 2024-05-29 18:29:26 +00:00
naskya
cad3610d2e fix: feather push notifications 2024-05-29 18:29:26 +00:00
naskya
8fca35ca06 fix: Ice Cubes push notifications
Co-authored-by: Eana Hufwe <eana@1a23.com>
2024-05-29 18:29:26 +00:00