Commit Graph

1457 Commits

Author SHA1 Message Date
bitfl0wer d0e2cc29dd
Add wasm test script 2024-07-11 15:48:06 +02:00
bitfl0wer 829cc9878f
Lock reqwest at 0.11.26, latest possible version 2024-07-11 14:23:50 +02:00
bitfl0wer ae6233b495
Lock reqwest at 0.11.23 2024-07-11 14:17:07 +02:00
bitfl0wer 0d40af069a
Revert reqwest 2024-07-11 14:13:02 +02:00
bitfl0wer cd2b5b9789
Expand wasm documentation 2024-07-10 18:13:53 +02:00
bitfl0wer 88ebc9e399
Build RootCertStore from webpki roots instead of native roots 2024-07-10 18:13:40 +02:00
bitfl0wer 648cd21001
Eliminate openssl dependency from crate 2024-07-10 18:13:19 +02:00
bitfl0wer e6838108af
Add shorthand wasm build script 2024-07-10 18:13:01 +02:00
bitfl0wer 215e576e90
Remove openssl from some packages' deps 2024-07-10 17:31:04 +02:00
kozabrada123 743f106ec6
Miscellaneous fixes (#514)
- fix `PATCH /users/@me` - It incorrectly returned a required password error, even if the current password was set
- fix `GET /users/@me/guilds` - It incorrectly sent body parameters instead of query ones
- don't log debug! for every successful ratelimited request - use trace! so it's less spamy
- update the max expected compression ratio (several times) from 20 to 200. let's hope that will be enough
- fix deserialization errors relating to guild folders in user settings
- fix a panic in `SqlxBitFlags` if there are extra flags. It now truncates them
- update `chorus_macros` to 0.4.1 (due to the above fix)
- log (trace!) event data if we fail to parse it or it's unrecognised, for debugging purposes
- fix a deserialization error in the `MessageACK` event
- fix `public_flags` in user objects not being `PublicFlags` bitflags
2024-06-28 14:05:59 +02:00
Quat3rnion d59161619c
Add custom deserializer for PermissionOverwriteType (#512)
* Add custom deserializer for PermissionOverwriteType
2024-06-27 20:36:39 +02:00
Quat3rnion 39e7f89c78
Backend/guilds (#509)
* Fix SQL encode/decode for GuildFeatures

* Use distinct PermissionFlags type

* Add Emoji schema types, modify GuildBan with feature lock

* Add Schemas for pruning guild members

* Add schemas for interfacing with stickers backend routes

* Add schemas for interfacing with vanity-url backend routes

* Add schema for interfacing with guilds/id/welcome-screen route

* Make all Option<Vec> types Vec types with #[serde(default)]

* Add various types to support guilds/* api routes

* Add missing enums and structs for searching messages

* Use proper distinct types

* Add EmbedType enum

* Use distinct PermissionFlags type

* Changes supporting backend for VoiceState

* Changes supporting backend for AuditLog's
2024-06-27 08:45:51 +02:00
kozabrada123 89333d6353
Implement gateway options, zlib-stream compression (#508)
* feat: add GatewayOptions

* feat: implement zlib-stream compression

This also changes how gateway messages work.
Now each gateway backend converts its message into an
intermediary RawGatewayMessage, from which we inflate
and parse GatewayMessages.

Thanks to ByteAlex and their zlib-stream-rs crate, which
helped me understand how to parse a compressed websocket stream
2024-06-23 17:23:13 +02:00
Quat3rnion b4a8082f29
Update and add some types in support of the backend (#507) 2024-06-19 19:59:39 +02:00
kozabrada123 a7fc00df29
Bump chorus macros to 0.4.0 (#506)
- Bumps chorus macros to 0.4.0, followup to #505
- Makes builds within the repo use the local path and published releases
use a set version of the macros crate
2024-06-18 17:59:41 +02:00
kozabrada123 b3e62b2c33 always update to latest release of macros 2024-06-18 17:48:57 +02:00
kozabrada123 8d56259eac chorus macros 0.4.0 2024-06-18 17:35:39 +02:00
kozabrada123 3aec5881e5
Merge Quat3rnion/backend/messages (#505)
- Adds a multitude of new Types, Flags, and a few Objects relating to
sending and managing messages.
- Adds new SqlxBitFlag macro, which handles BitFlag objects being read
from/written to the database.
- Modifies some entities to use (new) Distinct Types instead of
primitives
2024-06-18 17:30:50 +02:00
kozabrada123 4430a7c4e6
Fix deserialization error w/ guild features list 2024-06-18 17:18:20 +02:00
Quat3rnion a8b7d9dfb3 u8 -> u64 2024-06-18 10:07:56 -04:00
Quat3rnion e553d10f25 Add new SerdeBitFlags derive macro, to help reduce repetitive code 2024-06-18 10:04:00 -04:00
Quat3rnion c9a36ce725 Maybe fix tests, make UserFlags able to be deserialized from String or u64 2024-06-18 08:46:07 -04:00
Quat3rnion d7de1d2fb7 Fix compilation for real, no dirty hack 2024-06-18 05:46:27 -04:00
Quat3rnion c27bc8d575 Fix test
I feel silly.
2024-06-18 05:34:03 -04:00
Quat3rnion abc4608be5 Dirty hack 2024-06-18 05:32:27 -04:00
Quat3rnion 77004abcfa Feature lock the macro 2024-06-18 05:24:42 -04:00
Quat3rnion 06b4dc3abd forgot a file :( 2024-06-18 05:19:51 -04:00
Quat3rnion 3810170400 Remove unused imports, feature locks in macro 2024-06-18 05:14:28 -04:00
Quat3rnion dfffcf4313 Add forgotten feature locks 2024-06-18 05:09:00 -04:00
Quat3rnion 6261cebfdf Fix test 2024-06-18 05:03:55 -04:00
Quat3rnion d8560093f5 Use chorus_macros from path, since it's there anyway 2024-06-18 04:48:50 -04:00
Quat3rnion bec0269e70 Add partial emoji and custom reaction types, refine SQLx mapping 2024-06-17 15:22:58 -04:00
Quat3rnion 590a6d6828 Make UserFlags deserialize from string 2024-06-07 14:08:47 -04:00
Quat3rnion 9bd55b9b5f Fix error in macro 2024-06-07 14:08:24 -04:00
Quat3rnion d3e2ef947c Add distinct MessageType enum 2024-06-07 13:14:25 -04:00
Quat3rnion d89975819a Utilize new macros and use distinct Flag types 2024-06-07 13:13:27 -04:00
Quat3rnion 656e5e31c0 Add SqlxBitFlags derive macro 2024-06-07 13:03:44 -04:00
Quat3rnion c2035585ae Update Cargo.lock 2024-06-07 13:02:17 -04:00
Quat3rnion 96c3f53961 Merge branch 'dev' into backend/messages 2024-06-07 13:00:04 -04:00
Quat3rnion ed5365ade4 Fix inverted type wrapping 2024-06-07 02:08:41 -04:00
Quat3rnion 0468292ec6 Add type locks 2024-06-07 02:08:21 -04:00
kozabrada123 3237db708c
Backend/invites (#503)
- Adds implementation to convert `Guild` to `InviteGuild`
- Adds GetInviteSchema
- Replaces primitives with distinct types on `InviteGuild`
2024-06-07 06:54:33 +02:00
Quat3rnion 83a8f080b7
Update docs aesthetics
Co-authored-by: kozabrada123 <59031733+kozabrada123@users.noreply.github.com>
2024-06-07 00:46:53 -04:00
Quat3rnion a0cddbf3ae Fix compile error 2024-06-05 21:10:29 -04:00
Quat3rnion 556fbb9ded Add forgotten import and pub use. 2024-06-05 14:50:38 -04:00
Quat3rnion eb87bd6ffc Add `GetInvitesSchema` 2024-06-05 14:50:10 -04:00
Quat3rnion 5110e9bfdb Implement `From<Guild> for InviteGuild` 2024-06-05 14:49:34 -04:00
Quat3rnion c8bde0c9ec Use distinct types in `InviteGuild` object. 2024-06-05 14:49:17 -04:00
kozabrada123 5154d04d4a
Invites (#502)
- Modify Invite entity to work with symfonia
- Adds custom deserialization to InviteFlags
2024-06-05 19:57:26 +02:00
Quat3rnion dfd6b371f3 Merge branch 'dev' into backend 2024-06-05 13:25:44 -04:00