Compare commits

...

8 Commits

Author SHA1 Message Date
stoat-release[bot]
ee4575470b chore(main): release 0.13.4 (#754)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-05-16 18:27:44 +01:00
Paul Makles
6cfee1f601 fix: add TLS feature to livekit-api crate (#753) 2026-05-16 18:23:45 +01:00
stoat-release[bot]
ab9b8ccfca chore(main): release 0.13.3 (#750)
* chore(main): release 0.13.3

* chore: update Cargo.lock

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: stoat-release[bot] <245062572+stoat-release[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-05-15 12:22:27 -07:00
Tom
7647cfc8d9 fix: don't automatically set up rabbitmq in delta (#749)
fix: don't declare queues which seem to cause the backend to crash in prod
for now, these exchanges/queues/bindings will need to be declared manually. Hopefully the lapin rewrite will fix this.

Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>
2026-05-15 12:17:36 -07:00
stoat-release[bot]
8157e1f6e9 chore(main): release 0.13.2 (#747)
* chore(main): release 0.13.2

* chore: update Cargo.lock

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: stoat-release[bot] <245062572+stoat-release[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-05-11 15:26:03 +01:00
Paul Makles
fcb8091cd7 fix: update default exchange to revolt.default (#746)
Signed-off-by: Paul Makles <me@insrt.uk>
2026-05-11 15:21:34 +01:00
stoat-release[bot]
260036488d chore(main): release 0.13.1 (#745)
Co-authored-by: stoat-release[bot] <245062572+stoat-release[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-05-10 15:34:41 +01:00
Tom
1100eaf46f fix: amqprs startup bug (#744) 2026-05-10 15:22:26 +01:00
26 changed files with 145 additions and 67 deletions

View File

@@ -1,3 +1,3 @@
{
".": "0.13.0"
".": "0.13.4"
}

View File

@@ -1,5 +1,34 @@
# Changelog
## [0.13.4](https://github.com/stoatchat/stoatchat/compare/v0.13.3...v0.13.4) (2026-05-16)
### Bug Fixes
* add TLS feature to livekit-api crate ([#753](https://github.com/stoatchat/stoatchat/issues/753)) ([6cfee1f](https://github.com/stoatchat/stoatchat/commit/6cfee1f601c1e084df7c8f1e7a5e8a560d1dd514))
## [0.13.3](https://github.com/stoatchat/stoatchat/compare/v0.13.2...v0.13.3) (2026-05-15)
### Bug Fixes
* don't automatically set up rabbitmq in delta ([#749](https://github.com/stoatchat/stoatchat/issues/749)) ([7647cfc](https://github.com/stoatchat/stoatchat/commit/7647cfc8d93aba99f5faef13eb3d970097540d76))
* don't declare queues which seem to cause the backend to crash in prod ([7647cfc](https://github.com/stoatchat/stoatchat/commit/7647cfc8d93aba99f5faef13eb3d970097540d76))
## [0.13.2](https://github.com/stoatchat/stoatchat/compare/v0.13.1...v0.13.2) (2026-05-11)
### Bug Fixes
* update default exchange to `revolt.default` ([#746](https://github.com/stoatchat/stoatchat/issues/746)) ([fcb8091](https://github.com/stoatchat/stoatchat/commit/fcb8091cd7a00d7f26c798daa33aae4b923b2a8b))
## [0.13.1](https://github.com/stoatchat/stoatchat/compare/v0.13.0...v0.13.1) (2026-05-10)
### Bug Fixes
* amqprs startup bug ([#744](https://github.com/stoatchat/stoatchat/issues/744)) ([1100eaf](https://github.com/stoatchat/stoatchat/commit/1100eaf46f849f2509ae01ac497556ca33bde778))
## [0.13.0](https://github.com/stoatchat/stoatchat/compare/v0.12.1...v0.13.0) (2026-05-08)

82
Cargo.lock generated
View File

@@ -570,7 +570,7 @@ dependencies = [
"futures-util",
"log",
"pin-project-lite 0.2.17",
"tungstenite",
"tungstenite 0.17.3",
]
[[package]]
@@ -5048,11 +5048,14 @@ dependencies = [
"prost",
"rand 0.9.2",
"reqwest 0.12.28",
"rustls-native-certs 0.6.3",
"scopeguard",
"serde",
"serde_json",
"sha2",
"thiserror 2.0.18",
"tokio-rustls 0.24.1",
"tokio-tungstenite",
"url",
]
@@ -7419,16 +7422,22 @@ dependencies = [
"http-body 1.0.1",
"http-body-util",
"hyper 1.9.0",
"hyper-rustls 0.27.7",
"hyper-util",
"js-sys",
"log",
"percent-encoding",
"pin-project-lite 0.2.17",
"quinn",
"rustls 0.23.37",
"rustls-native-certs 0.8.3",
"rustls-pki-types",
"serde",
"serde_json",
"serde_urlencoded",
"sync_wrapper 1.0.2",
"tokio 1.51.0",
"tokio-rustls 0.26.4",
"tower",
"tower-http 0.6.8",
"tower-service",
@@ -7504,7 +7513,7 @@ dependencies = [
[[package]]
name = "revolt-autumn"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"axum",
"axum-macros",
@@ -7545,7 +7554,7 @@ dependencies = [
[[package]]
name = "revolt-bonfire"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"async-channel 2.5.0",
"async-std",
@@ -7576,7 +7585,7 @@ dependencies = [
[[package]]
name = "revolt-coalesced"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"indexmap 2.13.1",
"lru",
@@ -7585,7 +7594,7 @@ dependencies = [
[[package]]
name = "revolt-config"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"async-std",
"cached",
@@ -7602,7 +7611,7 @@ dependencies = [
[[package]]
name = "revolt-crond"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"futures-lite",
"iso8601-timestamp",
@@ -7622,7 +7631,7 @@ dependencies = [
[[package]]
name = "revolt-database"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"amqprs",
"async-lock 2.8.0",
@@ -7673,7 +7682,7 @@ dependencies = [
[[package]]
name = "revolt-delta"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"amqprs",
"async-channel 2.5.0",
@@ -7722,7 +7731,7 @@ dependencies = [
[[package]]
name = "revolt-files"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"aes-gcm",
"anyhow",
@@ -7750,7 +7759,7 @@ dependencies = [
[[package]]
name = "revolt-gifbox"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"axum",
"axum-extra",
@@ -7773,7 +7782,7 @@ dependencies = [
[[package]]
name = "revolt-january"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"async-recursion",
"axum",
@@ -7803,7 +7812,7 @@ dependencies = [
[[package]]
name = "revolt-models"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"indexmap 2.13.1",
"iso8601-timestamp",
@@ -7822,14 +7831,14 @@ dependencies = [
[[package]]
name = "revolt-parser"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"logos",
]
[[package]]
name = "revolt-permissions"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"async-std",
"async-trait",
@@ -7844,7 +7853,7 @@ dependencies = [
[[package]]
name = "revolt-presence"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"async-std",
"log",
@@ -7856,7 +7865,7 @@ dependencies = [
[[package]]
name = "revolt-pushd"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"amqprs",
"anyhow",
@@ -7887,7 +7896,7 @@ dependencies = [
[[package]]
name = "revolt-ratelimits"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"async-trait",
"authifier",
@@ -7904,7 +7913,7 @@ dependencies = [
[[package]]
name = "revolt-result"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"axum",
"log",
@@ -7920,7 +7929,7 @@ dependencies = [
[[package]]
name = "revolt-voice-ingress"
version = "0.13.0"
version = "0.13.4"
dependencies = [
"amqprs",
"async-std",
@@ -9891,6 +9900,21 @@ dependencies = [
"tokio 1.51.0",
]
[[package]]
name = "tokio-tungstenite"
version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c"
dependencies = [
"futures-util",
"log",
"rustls 0.21.12",
"rustls-native-certs 0.6.3",
"tokio 1.51.0",
"tokio-rustls 0.24.1",
"tungstenite 0.20.1",
]
[[package]]
name = "tokio-util"
version = "0.7.18"
@@ -10146,6 +10170,26 @@ dependencies = [
"utf-8",
]
[[package]]
name = "tungstenite"
version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e3dac10fd62eaf6617d3a904ae222845979aec67c615d1c842b4002c7666fb9"
dependencies = [
"byteorder",
"bytes 1.11.1",
"data-encoding",
"http 0.2.12",
"httparse",
"log",
"rand 0.8.5",
"rustls 0.21.12",
"sha1",
"thiserror 1.0.69",
"url",
"utf-8",
]
[[package]]
name = "typed-builder"
version = "0.22.0"

View File

@@ -192,13 +192,13 @@ futures-lite = "2.6.1"
vergen = "7.5.0"
# Local packages
revolt-coalesced = { version = "0.13.0", path = "crates/core/coalesced" }
revolt-config = { version = "0.13.0", path = "crates/core/config" }
revolt-database = { version = "0.13.0", path = "crates/core/database" }
revolt-files = { version = "0.13.0", path = "crates/core/files" }
revolt-models = { version = "0.13.0", path = "crates/core/models" }
revolt-parser = { version = "0.13.0", path = "crates/core/parser" }
revolt-permissions = { version = "0.13.0", path = "crates/core/permissions" }
revolt-presence = { version = "0.13.0", path = "crates/core/presence" }
revolt-ratelimits = { version = "0.13.0", path = "crates/core/ratelimits" }
revolt-result = { version = "0.13.0", path = "crates/core/result" }
revolt-coalesced = { version = "0.13.4", path = "crates/core/coalesced" }
revolt-config = { version = "0.13.4", path = "crates/core/config" }
revolt-database = { version = "0.13.4", path = "crates/core/database" }
revolt-files = { version = "0.13.4", path = "crates/core/files" }
revolt-models = { version = "0.13.4", path = "crates/core/models" }
revolt-parser = { version = "0.13.4", path = "crates/core/parser" }
revolt-permissions = { version = "0.13.4", path = "crates/core/permissions" }
revolt-presence = { version = "0.13.4", path = "crates/core/presence" }
revolt-ratelimits = { version = "0.13.4", path = "crates/core/ratelimits" }
revolt-result = { version = "0.13.4", path = "crates/core/result" }

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-bonfire"
version = "0.13.0"
version = "0.13.4"
license = "AGPL-3.0-or-later"
edition = "2021"
publish = false

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-coalesced"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>", "Zomatree <me@zomatree.live>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-config"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>"]

View File

@@ -30,7 +30,7 @@ host = "rabbit"
port = 5672
username = "rabbituser"
password = "rabbitpass"
default_exchange = "revolt"
default_exchange = "revolt.default"
[rabbit.queues]
acks = "internal.ack"

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-database"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <me@insrt.uk>"]
@@ -98,6 +98,6 @@ authifier = { workspace = true }
amqprs = { workspace = true }
# Voice
livekit-api = { workspace = true, optional = true }
livekit-api = { workspace = true, features = ["rustls-tls-native-roots"], optional = true }
livekit-protocol = { workspace = true, optional = true }
livekit-runtime = { workspace = true, features = ["tokio"], optional = true }

View File

@@ -29,7 +29,7 @@ impl AMQP {
}
}
pub async fn new_auto() -> AMQP {
pub async fn new_auto() -> revolt_result::Result<AMQP> {
let config = revolt_config::config().await;
let connection = Connection::open(&OpenConnectionArguments::new(
@@ -46,21 +46,26 @@ impl AMQP {
.await
.expect("Failed to open RabbitMQ channel");
channel
.exchange_declare(
ExchangeDeclareArguments::new(&config.pushd.exchange, "direct")
.durable(true)
.finish(),
)
.await
.expect("Failed to declare exchange");
AMQP::new(connection, channel)
let mut resp = AMQP::new(connection, channel);
//resp.configure_channels().await?;
Ok(resp)
}
pub async fn configure_channels(&self) -> revolt_result::Result<()> {
pub async fn repoen_channel(&mut self) {
self.channel = self
.connection
.open_channel(None)
.await
.expect("Failed to open RabbitMQ channel");
}
pub async fn configure_channels(&mut self) -> revolt_result::Result<()> {
let config = revolt_config::config().await;
if !self.channel.is_open() {
self.repoen_channel().await;
}
self.channel
.exchange_declare(
ExchangeDeclareArguments::new(

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-files"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-models"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-parser"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "MIT"
authors = ["Zomatree <me@zomatree.live>", "Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-permissions"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-presence"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-ratelimits"
version = "0.13.0"
version = "0.13.4"
edition = "2024"
license = "MIT"
authors = ["Zomatree <me@zomatree.live>", "Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-result"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-crond"
version = "0.13.0"
version = "0.13.4"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <me@insrt.uk>"]
edition = "2021"

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-pushd"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-voice-ingress"
version = "0.13.0"
version = "0.13.4"
license = "AGPL-3.0-or-later"
edition = "2021"
publish = false

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-delta"
version = "0.13.0"
version = "0.13.4"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <paulmakles@gmail.com>"]
edition = "2018"

View File

@@ -119,10 +119,10 @@ pub async fn web() -> Rocket<Build> {
.await
.expect("Failed to declare exchange");
let amqp = AMQP::new(connection, channel);
amqp.configure_channels()
.await
.expect("Failed to configure channels");
let mut amqp = AMQP::new(connection, channel);
// amqp.configure_channels()
// .await
// .expect("Failed to configure channels");
// Launch background task workers
revolt_database::tasks::start_workers(db.clone(), amqp.clone());

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-autumn"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-gifbox"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-january"
version = "0.13.0"
version = "0.13.4"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false

View File

@@ -1 +1 @@
0.13.0
0.13.4