5751 Commits

Author SHA1 Message Date
June 🍓🦴
d23a8412bd
Merge pull request #9 from jevolk/conduwuit-changes 2024-08-15 07:49:15 -04:00
Jason Volk
3f06ade0fd Revert "Revert "optimize for optional static response headers zero-copy zero-alloc""
This reverts commit 6bdc5ad326029e84fe05ed2591d9ba442bab8ff5.

Revert "Revert "Fix assumptions about header value types""

This reverts commit 03037f6c92ffb43388022d288e5a36f20a8559dd.
2024-08-15 05:20:21 +00:00
Jason Volk
6e5e96cba3 add missing ContentDisposition header; fix non-upstreamed ContentDisposition strong type
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-15 01:07:28 +00:00
Jason Volk
11cbd52af1 estimate and reserve capacity in outgoing headers map
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-14 02:11:25 -04:00
Jason Volk
e312768a66 add missing corp/cache-control headers to client authenticated media
Signed-off-by: Jason Volk <jason@zemos.net>
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-08-14 02:09:52 -04:00
strawberry
69b2bc4b8c Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-08-14 01:47:43 -04:00
strawberry
6bdc5ad326 Revert "optimize for optional static response headers zero-copy zero-alloc"
This reverts commit fd11fee88d937d69f557fa3d6ef09639c7b2e2f7.
2024-08-14 01:46:35 -04:00
strawberry
959048c0c4 Revert "add missing corp/cache-control headers to authenticated media"
This reverts commit 9d25b0d5c27dbcc62a70fbaacb80632bf6bc9ebc.
2024-08-14 01:46:10 -04:00
strawberry
3174097e35 Revert "estimate and reserve capacity in outgoing headers map"
This reverts commit a6e340e24d570b1d924fff52c68d1dea72946b68.
2024-08-14 01:44:42 -04:00
strawberry
03037f6c92 Revert "Fix assumptions about header value types"
This reverts commit 767b7c72f782b04f8e7c714a152a08699ff8c1ca.
2024-08-14 01:44:16 -04:00
June 🍓🦴
38d791b679
Merge pull request #8 from jevolk/conduwuit-changes
Daily Rumanation 🤔
2024-08-12 19:48:17 -04:00
Jason Volk
9d25b0d5c2 add missing corp/cache-control headers to authenticated media
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 23:03:07 +00:00
Jason Volk
fd11fee88d optimize for optional static response headers zero-copy zero-alloc
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 22:59:57 +00:00
Jason Volk
a6e340e24d estimate and reserve capacity in outgoing headers map
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 22:57:38 +00:00
Jason Volk
767b7c72f7 Fix assumptions about header value types
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 20:56:31 +00:00
June 🍓🦴
40bf9965ac
Merge pull request #7 from jevolk/conduwuit-changes
zero-alloc zero-copy identifier deserialization and validation
2024-08-11 16:44:50 -04:00
Jason Volk
de41ebd92f zero-alloc zero-copy identifier deserialization and validation
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-11 20:37:10 +00:00
June 🍓🦴
9508f16eb4
Merge pull request #6 from jevolk/conduwuit-changes
re-export js_int Error
2024-08-10 10:28:55 -04:00
Jason Volk
10f9f5a900 re-export js_int::Error
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-10 08:52:41 +00:00
Jason Volk
c12175cd16 apply rusfmt
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-10 08:40:49 +00:00
Andrew Ferrazzutti
82417e3940
events: Loosen type of call member event state keys
Allow MSC3401-style call membership state events to have state keys that
are arbitrary strings, and not just pure MXIDs.

This allows for state keys that are suffixed with the sender's device
ID, as well as ones prefixed by an underscore to bypass auth rules over
state keys that start with a `@` but do not strictly equal an MXID.
2024-08-10 09:41:46 +02:00
Kévin Commaille
04654f8833 chore: Fix new clippy warnings 2024-07-29 20:03:44 +02:00
Kévin Commaille
6087f7efbb ci: Bump nightly version 2024-07-29 20:03:44 +02:00
Timo
878d2b287b
events: update future endpoints and rename future to delay
To match the latest version of the MSC
2024-07-29 16:38:38 +02:00
strawberry
c76e2873c1 make ruma-identifiers-validation a ruma feature
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-07-23 22:09:52 -04:00
Kévin Commaille
14d7415f0d client-api: Do not send request body for logout and logout_all
Due to a clarification in the spec.
2024-07-16 20:21:29 +02:00
Kévin Commaille
e815eb7603 federation-api: Add support for authenticated media endpoints
According to MSC3916 / Matrix 1.11.
2024-07-16 15:02:45 +02:00
Kévin Commaille
9e8008f011 chore: Make rand a workspace dependency 2024-07-16 15:02:45 +02:00
Kévin Commaille
586668806e client-api: Move some media types and helpers to ruma-common
Without breaking changes.
2024-07-16 15:02:45 +02:00
Kévin Commaille
f9ae582b27 chore: Make bytes a workspace dependency 2024-07-16 15:02:45 +02:00
Kévin Commaille
463f89b0eb client-api: Add a type for the Content-Disposition HTTP header 2024-07-14 12:28:48 +02:00
Kévin Commaille
f73ba5556c api: Allow types implementing ToString and FromStr for header values
Contrary to what the previous docs said, types implementing Display did not work,
only string types worked.
2024-07-14 12:28:48 +02:00
Kévin Commaille
cc56e5277b serde: Re-export AsStrAsRefStr derive macro
It seems it was forgotten in the list of reexports.
2024-07-14 12:28:48 +02:00
Matthias Ahouansou
50a46cc5f6
api: implement (Partial)Eq for Metadata 2024-07-11 21:47:48 +02:00
torrybr
5ebe200bb6
ci: Improve and run clippy-wasm command
Lint more crates with it and enable more features. Also only allow web-time types.
2024-07-11 09:47:03 +02:00
torrybr
7f562fe67e
events: use web-time instead of std::time for BeaconInfoEventContent 2024-07-08 10:18:03 +02:00
strawberry
c51ccb2c68 fix incorrect MSC3266 room summary API endpoint
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-07-03 15:42:44 -04:00
strawberry
9a5bfad849 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-06-30 11:54:39 -04:00
strawberry
f1f96dc2b2 revert this cargo.toml formatting
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-06-30 11:54:20 -04:00
Matthias Ahouansou
c37843e9be events: make allow field for restricted rooms optional
In the spec, it doesn't state that it is a required field, even for restricted rooms
2024-06-27 18:26:34 +00:00
Kévin Commaille
f17de39ed4 events: More relation serde fixes
It seems that we cant count on serde_json::to_value to detect
duplicates,
because it swallows them instead of returning an error.
The only solution then is to serialize to string and try to deserialize
again.
2024-06-25 14:10:11 +02:00
Timo
862be071d2
client-api: Add future endpoints 2024-06-25 12:45:15 +02:00
Benjamin Bouvier
e5a370f7e5 events: don't serialize the rel_type twice for Thread relationships 2024-06-25 11:00:38 +02:00
June 🍓🦴
f502c88878
Merge pull request #5 from jevolk/conduwuit-changes
GATs are stable
2024-06-25 04:38:15 -04:00
Jason Volk
cdac2a88f8 GATs are stable
Signed-off-by: Jason Volk <jason@zemos.net>
2024-06-25 05:44:50 +00:00
Benjamin Bouvier
fec2152d87
events: allow deserializing an event content with a type (#1850)
This allows deserializing all the `*EventContent` types into a parent `Any{...}EventContent`, assuming we know the type of the underlying event.

Required for serializing/deserializing the content of events we'd like to send, across application restarts, as in https://github.com/matrix-org/matrix-rust-sdk/issues/3361 for the Rust SDK.

---

* events: add deserialize_with_type to all the *EventContent types

* events: add smoke test for deserializing an event content with a type

* events: add a test for deserializing a secret storage key event content

* events: add fix for correctly matching events with a type fragment

* Address review comments.
2024-06-24 10:55:12 +02:00
Kévin Commaille
829bf5caec server-util: Use http-auth crate to parse XMatrix 2024-06-22 16:25:05 +02:00
Kévin Commaille
a17c0516d6 identifiers: Deprecate constructing Matrix URI for event with room alias
According to MSC4132 / Matrix 1.11
2024-06-22 11:10:44 +02:00
Kévin Commaille
bc39c04af9 client-api: Add support for terms of service at registration
According to MSC1692 / Matrix 1.11
2024-06-22 11:05:57 +02:00
Kévin Commaille
002fe2fb3d html: Add support for mathematical messages
According to MSC2191 / Matrix 1.11
2024-06-22 11:00:18 +02:00