-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking for release 0.16.0 #511
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* feat: add WebSocketEvent derive, bump to 0.2.1 * change license, version of macros
use derive macro instead of manual impl blocks
* deps: bump rustls to 0.21.11 This is done to fix CVE-2024-32650, which practically shouldn't affect us but it's still better not to use vulnerable dependencies. * deps: bump h2 to 0.3.26 This is done to fix another vulnerability, which should also not affect us (non-critical, in h2 servers) * fix: move Shared<T> to types/mod.rs
Change login and register to only use one ChorusUser object, change the api of related methods which were also somewhat ugly
To allow [Crates.io](https://crates.io/) , [lib.rs](https://lib.rs/) and the [Rust Digger](https://rust-digger.code-maven.com/) to link to it. See [the manifest](https://doc.rust-lang.org/cargo/reference/manifest.html#the-repository-field) for the explanation.
* bump wasm-bindgen version to 0.2.92 * change wasm-gecko to using ubuntu-latest, since geckodriver is not supported on macos-latest * check some common non-default feature configurations * add experimental semver checks
* fix: some iso timestamps being strings * fix: register uses dates, not datetimes
Related to #523, changes `theme_colors` property on `User` and `PublicUser` to be of type `(u32, u32)`
Replaces the derived `std::default::Default` with ```rs impl std::default::Default for GatewayHello { fn default() -> Self { Self { // "HELLO" opcode is 10 op: 10, d: Default::default(), } } } impl std::default::Default for HelloData { fn default() -> Self { Self { // Discord docs mention 45000 seconds - discord.sex mentions 41250. Defaulting to 45s heartbeat_interval: 45000, } } } ```
#535) Manually implement std::default::Default for GatewayHeartbeat and GatewayHeartbeatAck with the correct opcodes.
* Update msrv
* Bump sqlx to 0.8.0 * Update sqlx syntax to 0.8.0, change MySql for sqlx:: Any * Update sqlx syntax to 0.8.0, change MySql for sqlx:: Any * Modify chorus_macros::SqlxBitflagDerive to use sqlx::Any over sqlx::MySql (broken!) * Fix: `cannot infer type for type parameter `DB` declared on the trait...` * Change remaining impls of sqlx traits for MySql to sqlx::Any * Alter chorus_macros to correctly derive SqlxBitFlag for sqlx::Any * rustc/clippy>=v1.80.0: Do not warn when encountering cfg(tarpaulin_include) * Port compare_* methods to sqlx v0.8.0
* CI/CD: add cargo-doc job * fix: make it rustdoc, totally not clippy
* Change sqlx::Any to sqlx::Postgres * Change sqlx::Any to sqlx::Postgres * Remove JSONified overrides when sqlx feature is enabled, where it makes sense * Add num-bigint dep * Remove generic impl for From<T> for Snowflake For some reason, this trait bound conflicts with another trait bound from the sqlx-pg-uint crate, even though I personally don't get why. * Remove num_bigint, adsd sqlx-pg-uint * swap u64 for PgU64 in some files * use v0.3.0 of sqlx-pg-uint * Lots of sqlx-postgres type changes * Lots of sqlx-postgres type changes * gwah * Change repr(i8) to repr(i16) in enums when sqlx feature is enabled, fix sqlx incompatibilities * impl sqlx::postgres::PgHasArrayType for Snowflake * Try: derive Type for FriendSourceFlags, GuildFolder * Try: Derive FromRow, Type for DefaultReaction * Try: Derive Type for CustomStatus * Try: Derive Type, FromRow for Tag * Replace conditional compiling of uNN/PgUNN with conditional compiled type alias * Fix: Conditional compiling errors and warnings * Bump: wasm-bindgen* crate versions
* Bump sqlx-pg-uint, sqlx * Use PgU64 as base for implementations of sqlx traits for Snowflake
* sqlx_bitflag_derive: Use PgU64 as translation base * Bump version of chorus-macros
Match scheme for "ws" or "wss" and choose whether to connect with TLS connector for tungstenite
* Make instance GatewayOptions configurable for library consumers * Update example in README
* chore: fix doc lints * fix: use different chrono function due to deprecation * chore: format
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Opening this pr to track the changes for the next stable release, 0.16.0
Todos
Changes
Major changes:
openssl
in favor ofrustls
andwebpki_roots
(No openssl #522)&str
overString
when possible #553)Minor changes:
chorus_macros
'cargo.toml
(Add the repository field to Cargo.toml #496)Observer
andGatewayEvent
withpubserve
crate (ReplaceObserver
andGatewayEvent
withpubserve
crate #524)ws
andwss
when spawning tungstenite connection to backend, not constructing TLS related objects ifws
is used as a connection URL. (Tungstenite: Match scheme for "ws" or "wss" #554)Fixes:
Clone
forRelationshipAdd
event (RelationshipAdd
missesClone
derive #525 and Fix #525 #532)impl WebSocketEvent for ... {}
#486)Shared<T>
totypes/mod.rs
(Move Shared<T> to types/mod.rs, bump some dependencies #492)PATCH /users/@me
- It incorrectly returned a required password error, even if the current password was setGET /users/@me/guilds
- It incorrectly sent body parameters instead of query onesSqlxBitFlags
if there are extra flags. It now truncates themchorus_macros
to 0.4.1 (due to the above fix)MessageACK
eventpublic_flags
in user objects not beingPublicFlags
bitflags