Skip to content

Commit 2e92b71

Browse files
sandhosehughnsanoadragon453
authored
MSC4108 implementation (#17056)
Co-authored-by: Hugh Nimmo-Smith <[email protected]> Co-authored-by: Hugh Nimmo-Smith <[email protected]> Co-authored-by: Andrew Morgan <[email protected]>
1 parent 646cb6f commit 2e92b71

File tree

17 files changed

+1120
-9
lines changed

17 files changed

+1120
-9
lines changed

Cargo.lock

Lines changed: 162 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

changelog.d/17056.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Implement the rendezvous mechanism described by MSC4108.

rust/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ name = "synapse.synapse_rust"
2323

2424
[dependencies]
2525
anyhow = "1.0.63"
26+
base64 = "0.21.7"
2627
bytes = "1.6.0"
2728
headers = "0.4.0"
2829
http = "1.1.0"
2930
lazy_static = "1.4.0"
3031
log = "0.4.17"
32+
mime = "0.3.17"
3133
pyo3 = { version = "0.20.0", features = [
3234
"macros",
3335
"anyhow",
@@ -37,8 +39,10 @@ pyo3 = { version = "0.20.0", features = [
3739
pyo3-log = "0.9.0"
3840
pythonize = "0.20.0"
3941
regex = "1.6.0"
42+
sha2 = "0.10.8"
4043
serde = { version = "1.0.144", features = ["derive"] }
4144
serde_json = "1.0.85"
45+
ulid = "1.1.2"
4246

4347
[features]
4448
extension-module = ["pyo3/extension-module"]

rust/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub mod errors;
77
pub mod events;
88
pub mod http;
99
pub mod push;
10+
pub mod rendezvous;
1011

1112
lazy_static! {
1213
static ref LOGGING_HANDLE: ResetHandle = pyo3_log::init();
@@ -45,6 +46,7 @@ fn synapse_rust(py: Python<'_>, m: &PyModule) -> PyResult<()> {
4546
acl::register_module(py, m)?;
4647
push::register_module(py, m)?;
4748
events::register_module(py, m)?;
49+
rendezvous::register_module(py, m)?;
4850

4951
Ok(())
5052
}

0 commit comments

Comments
 (0)