Commit graph

414 commits

Author SHA1 Message Date
naskya
9bb357dc50
refactor (backend): port getInstanceActor/getRelayActor to backend-rs 2024-07-13 20:45:52 +09:00
naskya
bbfd3218e1
fix (backend-rs): encode redis password 2024-07-12 23:43:08 +09:00
GitLab CI
59123fb066 chore(deps): update dependency @napi-rs/cli to v3.0.0-alpha.58 2024-07-11 12:05:33 +00:00
naskya
1c8308cc32
chore (backend-rs): add comment 2024-07-11 02:54:46 +09:00
naskya
85a1db7981
refactor (backend-rs): provide DbConn as an argument of user::count::local_total 2024-07-11 02:41:23 +09:00
naskya
ca6b840302
chore (backend-rs): add comment on NUMBER_OF_SYSTEM_ACTORS 2024-07-11 02:35:44 +09:00
naskya
edea72913e
fix (backend): count correct local users 2024-07-10 23:37:41 +09:00
GitLab CI
8ebaf719b1 chore(deps): update dependency @napi-rs/cli to v3.0.0-alpha.57 2024-07-10 01:05:00 +00:00
naskya
811a8c8559
Merge branch 'develop' into iceshrimp_mastodon 2024-07-10 08:15:59 +09:00
naskya
f5fc03698b
meta (backend-rs, macro-rs): set Rust version and edition in root 2024-07-09 18:36:45 +09:00
naskya
2f12da683d
meta: clarify the licenses
Note that the only authors of packages/macro-rs are @naskya and @sup39
at this moment, and they are agreed upon this change.

Also note that packages/firefish-js is forked from
https://github.com/misskey-dev/misskey.js
which is licensed under the MIT License.

Co-authored-by: sup39 <dev@sup39.dev>
2024-07-09 18:33:41 +09:00
naskya
892ff73cc5
fix (backend-rs): use tokio::sync::OnceCell for connection pools 2024-07-09 16:37:05 +09:00
naskya
0d561cfdb4
Merge branch 'develop' into iceshrimp_mastodon 2024-07-09 00:42:27 +09:00
naskya
db0ca693c6
docs (backend-rs): minor updates 2024-07-06 02:04:24 +09:00
naskya
712257a376
docs: add some docs for backend-rs 2024-07-05 23:37:15 +09:00
naskya
cdb890843a
Merge branch 'develop' into iceshrimp_mastodon 2024-07-05 16:41:23 +09:00
naskya
19673c6220
chore (backend-rs): update napi-derive 2024-07-05 16:21:16 +09:00
GitLab CI
b269c80e89 chore(deps): update dependency @napi-rs/cli to v3.0.0-alpha.56 2024-07-05 04:06:35 +00:00
naskya
3d11e6d519
chore: format 2024-07-05 04:23:40 +09:00
naskya
c630187b2e
Merge branch 'develop' into iceshrimp_mastodon 2024-07-05 01:38:52 +09:00
naskya
c855681b0c
feat: add ability to disable the cat language conversion 2024-07-05 01:24:57 +09:00
naskya
a130917c13
Merge branch 'develop' into iceshrimp_mastodon 2024-07-03 23:52:01 +09:00
naskya
5045f39da4
chore (backend-rs): use custom macros 2024-07-03 16:32:12 +09:00
naskya
b9aad98174
chore (backend-rs): use with-serde flag 2024-07-03 16:25:11 +09:00
naskya
76c411f1ff
Merge branch 'develop' into iceshrimp_mastodon 2024-07-02 23:54:11 +09:00
naskya
c59d7fcd03
fix (backend): broken RSS feed title 2024-07-02 23:35:39 +09:00
naskya
a451cf664c
Merge branch 'develop' into iceshrimp_mastodon 2024-06-28 16:45:41 +09:00
naskya
d262cb2125
chore (backend-rs): add package.json to the source of index.{js,d.ts} 2024-06-28 07:20:42 +09:00
naskya
bdb45a63d9
Merge branch 'develop' into iceshrimp_mastodon 2024-06-28 06:43:27 +09:00
naskya
22c31716fd
chore (backend-rs): use --dts-header option 2024-06-28 06:42:26 +09:00
naskya
0de6222671
Merge branch 'develop' into iceshrimp_mastodon 2024-06-27 22:17:24 +09:00
naskya
61b6ac5f2c
fix (backend-rs): do not specify RUSTFLAGS over napi-rs cli (at least for now) 2024-06-27 01:00:43 +09:00
naskya
b05972201e
meta: remove unused napi-related files 2024-06-23 05:13:40 +09:00
naskya
94c01d72e4
container: do not specify target CPU in container image build 2024-06-23 00:17:55 +09:00
naskya
c072f791aa
Merge branch 'develop' into iceshrimp_mastodon 2024-06-22 23:54:37 +09:00
naskya
f51047d60c
chore (backend-rs): address TODO 2024-06-21 19:09:09 +09:00
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