Jonas Platte
7c535badf6
events: Make some more types non-exhaustive
2020-09-22 23:12:22 +02:00
Jonas Platte
906e50f9a8
Fix clippy error
2020-09-17 22:18:16 +02:00
Jonas Platte
15e1a4bea8
Remove origin field from transactions and pdus for #[feature = "unstable-pre-spec"]
...
See https://github.com/matrix-org/synapse/issues/3816
Co-authored-by: Timo <timo@koesters.xyz>
2020-09-17 21:24:02 +02:00
Julian Tescher
c3a074059f
Make custom enum variants doc hidden
2020-09-08 01:06:23 +02:00
Nicholas Young
7ccdaa34d6
feature gate exhaustive types for all spec crates:
...
- ruma-appservice-api
- ruma-client-api
- ruma-events
- ruma-federation-api
2020-09-01 18:39:41 -06:00
Jonas Platte
5407a95a99
client-api: Update tag endpoints to the new API standards
2020-08-30 22:20:38 +02:00
Jonas Platte
532e7a7233
events: Hide EventType::Custom
2020-08-29 23:39:08 +02:00
Jonas Platte
578f6c8925
Replace r0::room::create_room::InitialStateEvent
with ruma_events::InitialStateEvent
2020-08-17 23:36:00 +02:00
Jonas Platte
148d876acb
Use ServerNameBox in ruma-events, ruma-*-api
2020-08-13 22:01:15 +02:00
Jonas Platte
4a1b6d5607
Use DeviceIdBox in ruma-events, ruma-*-api
2020-08-13 21:19:41 +02:00
Jonas Platte
5c025da37d
Add to ruma-events change log
2020-08-13 20:03:57 +02:00
Jonas Platte
b470d4d681
Fix ruma-events change log
2020-08-13 19:56:23 +02:00
Jonas Platte
221befe401
Add constructors to MessageEventContent
2020-08-13 19:51:02 +02:00
Jonas Platte
d36dcdb202
Add NoticeMessageEventContent::html and TextMessageEventContent::html
2020-08-13 19:46:05 +02:00
Jonas Platte
4a5272e37b
Fix doc typo
2020-08-13 19:45:03 +02:00
Devin Ragotzy
cfe62f27d0
Re-export ruma-events-macros and deps in ruma-events
...
This also adds the dependency and function to find crate name at macro
expansion time.
2020-08-11 23:47:34 +02:00
Jonas Platte
de337ecb8c
events: impl Display for room::message::MessageFormat
2020-08-11 15:09:25 +02:00
Jonas Platte
aa3e7416a9
Update constructors in ruma_events::room::message
2020-08-11 01:54:23 +02:00
Amanda Graven
fdc15123b0
Reorganize encyption related code
...
Some types used for encryption related tasks need to be used across more
internal crates than expected, so a few have been moved and renamed for
clarity.
* Rename the key_algorithms module in ruma-identifiers-validation to crypto_algorithms
* Move ruma_events::Algorithm to ruma-identifiers-validation and rename it EventEncryptionAlgorithm
* Move DeviceKeys from ruma-client-api to ruma-common
2020-08-10 18:38:53 +02:00
Jonas Platte
1fbf05d71f
Fix some bad formatting
2020-08-08 21:52:58 +02:00
Jonas Platte
d6d84a9a70
Bump ruma-identifiers version
2020-08-08 18:28:23 +02:00
Jonas Platte
a1916837f9
Bump ruma-identifiers version
2020-08-08 16:21:11 +02:00
Isaiah Inuwa
7eb945976c
Use strong types in signatures fields
2020-08-08 15:54:31 +02:00
Jonas Platte
30e73186e7
Bump dependencies
2020-08-07 19:13:00 +02:00
Jonas Platte
9bc6ce9201
Use identifier macros for tests
2020-08-05 00:12:44 +02:00
Jonas Platte
066da75c7d
Remove pointless TryFrom usage
2020-08-05 00:12:44 +02:00
Devin Ragotzy
606f988ed8
Add doc comments for cmp traits and use unambiguius paths
2020-08-03 17:39:50 +02:00
Devin Ragotzy
3f370c5f1b
Add PartialEq/Eq and PartialOrd/Ord to the event structs with event_ids
2020-08-03 17:39:50 +02:00
Damir Jelić
67a2012b85
ruma-events: Add an init struct for the m.sas.v1 content of the accept event.
2020-07-31 19:28:13 +02:00
Damir Jelić
964893334e
ruma-events: Add the hmac-sha256 MAC method.
2020-07-31 19:28:13 +02:00
Damir Jelić
6513ebd9b0
ruma-events: Rename MSasV1ContentOptions to MSasV1ContentInit.
2020-07-31 19:28:13 +02:00
Damir Jelić
21837d6b8d
ruma-events: Implement TryFrom to for MSasV1Content.
2020-07-31 19:28:13 +02:00
Damir Jelić
afeb328705
ruma-events: Change the structure of the accept event as well.
...
This allows the accept event to contain method specific content similar
to how the start event accepts it.
2020-07-31 19:28:13 +02:00
Damir Jelić
e847ac1ee1
ruma-events: Change the structure of key.verification.start events.
2020-07-31 19:28:13 +02:00
Jonas Platte
fa8c7b020b
Release ruma-events 0.22.0-alpha.1
2020-07-29 17:09:29 +02:00
Jonas Platte
48777f2eed
Release ruma-serde 0.2.3
2020-07-29 16:48:02 +02:00
Jonas Platte
c1677aa4c0
Fix cargo metadata
2020-07-29 16:36:48 +02:00
Jonas Platte
39c36176a6
Make in_reply_to in RelatesTo optional
2020-07-27 21:30:51 +02:00
Devin Ragotzy
4a34375449
Support multiple attribute arguments in ruma_event attribute ( #161 )
...
* Add parsing to allow ruma_event attribute to accept mutli args
* fixup! Add parsing to allow ruma_event attribute to accept mutli args
* Refactor MetaAttrs::parse and resolve review issues
2020-07-26 19:18:28 -04:00
Jonas Platte
1862d15365
Remove glob imports of C-like enums
2020-07-26 17:13:08 +02:00
Jonas Platte
3f3cf83ceb
Remove glob imports of modules
2020-07-26 17:13:00 +02:00
Jonas Platte
05d0a3c04b
fixup
2020-07-26 16:30:11 +02:00
Jonas Platte
d7463ce37d
Remove things that can't be properly deprecated
...
See https://github.com/rust-lang/rust/issues/47236
2020-07-26 16:24:36 +02:00
Jonas Platte
c363494905
Release ruma-identifiers 0.17.1
2020-07-26 15:04:20 +02:00
Jonas Platte
08fbace022
Mark PinnedEventsEventContent as non_exhaustive
2020-07-25 03:04:19 +02:00
Jonas Platte
be175bbae6
Mark JoinRulesEventContent as non_exhaustive
2020-07-25 02:58:37 +02:00
Jonas Platte
e01706d1bb
Accept and Into<String> for FormattedBody::html
2020-07-25 02:03:36 +02:00
Jonas Platte
f56b530dc3
Rename TextMessageEventContent::new_plain to plain
2020-07-25 01:59:18 +02:00
Jonas Platte
76c2f5c449
Add a convenience constructor to FormattedBody
2020-07-25 01:44:06 +02:00
Jonas Platte
360628067b
Release ruma-common 0.2.0
2020-07-24 21:08:46 +02:00