Skip to content

Commit

Permalink
MSC4108 implementation (#17056)
Browse files Browse the repository at this point in the history
Co-authored-by: Hugh Nimmo-Smith <[email protected]>
Co-authored-by: Hugh Nimmo-Smith <[email protected]>
Co-authored-by: Andrew Morgan <[email protected]>
  • Loading branch information
4 people authored Apr 25, 2024
1 parent 646cb6f commit 2e92b71
Show file tree
Hide file tree
Showing 17 changed files with 1,120 additions and 9 deletions.
164 changes: 162 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions changelog.d/17056.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Implement the rendezvous mechanism described by MSC4108.
4 changes: 4 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ name = "synapse.synapse_rust"

[dependencies]
anyhow = "1.0.63"
base64 = "0.21.7"
bytes = "1.6.0"
headers = "0.4.0"
http = "1.1.0"
lazy_static = "1.4.0"
log = "0.4.17"
mime = "0.3.17"
pyo3 = { version = "0.20.0", features = [
"macros",
"anyhow",
Expand All @@ -37,8 +39,10 @@ pyo3 = { version = "0.20.0", features = [
pyo3-log = "0.9.0"
pythonize = "0.20.0"
regex = "1.6.0"
sha2 = "0.10.8"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.85"
ulid = "1.1.2"

[features]
extension-module = ["pyo3/extension-module"]
Expand Down
2 changes: 2 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub mod errors;
pub mod events;
pub mod http;
pub mod push;
pub mod rendezvous;

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

Ok(())
}
Loading

0 comments on commit 2e92b71

Please sign in to comment.