80 Commits

Author SHA1 Message Date
Jonas Platte
ecfb8a4a4d
Relase ruma-common 0.3.0-alpha.1 2021-01-02 14:34:17 +01:00
Jonas Platte
6d468b88a3
Release ruma-identifiers-validation 0.2.0 and ruma-identifiers 0.18.0-alpha.1 2021-01-02 13:31:08 +01:00
Jonas Platte
2ebd827355
Release ruma-serde 0.3.0 2021-01-02 13:04:39 +01:00
Isaiah Inuwa
4831585223 Move TokenType to ruma-common 2020-12-26 21:46:29 +01:00
Jonas Platte
f55e2b2cc6
Bump dependency requirements 2020-12-24 02:48:01 +01:00
Jonas Platte
3989e52844
Upgrade js_int to 0.2.0 2020-12-24 01:53:30 +01:00
Jonas Platte
5562a23aaa
Move Raw, Outgoing and all macro code from ruma-common to ruma-serde 2020-11-28 03:45:39 +01:00
Ana Gelez
aab6ed9c94 Hide RulesetMember::add_to in the docs 2020-11-27 20:53:51 +01:00
Ana Gelez
483fe8f940 Run cargo fmt 2020-11-27 20:53:51 +01:00
Ana Gelez
57efd8cd5b Custom iterator for Ruleset 2020-11-27 20:53:34 +01:00
Ana Gelez
0e6d3f17c6 Seal the RulesetMember trait
+ use maplit instead of custom macro
+ fix two little issues in the documentation
2020-11-27 20:52:06 +01:00
Ana Gelez
65ef5f21e5 Use Self constructors when possible 2020-11-27 20:52:06 +01:00
Ana Gelez
1a29875fb4 Rename PushRule to SimplePushRule 2020-11-27 20:52:06 +01:00
Ana Gelez
5d988db5e7 impl Extend for Ruleset 2020-11-27 20:52:01 +01:00
Ana Gelez
0e0491c02b Add a "add" method on Ruleset
- Add wrapper types for each kind of push rule
- Add a trait to add a push rule to a rule set
2020-11-27 20:50:10 +01:00
Ana Gelez
98082e0081 Implement IntoIterator for Ruleset 2020-11-27 20:46:58 +01:00
Ana Gelez
e8622ee809 Use a BTreeSet instead of a Vec to make push rule IDs unique
- Introduce a new macro to easily derive Ord, PartialOrd, Eq and PartialEq
  for a PushRule-like type (these traits are required by BTreeSet)
- Introduce a new macro to easily build a BTreeSet
2020-11-27 20:46:58 +01:00
Jonas Platte
e7f55ea2c6
Rewrap comments 2020-11-27 18:22:18 +01:00
Gelez
4c41bfd1f3
Add constructors for default push rules 2020-11-24 22:37:09 +01:00
Jonas Platte
abc18fae39
Fix some links in documentation 2020-11-24 03:25:02 +01:00
Jonas Platte
f2c2f2df2f
common: Don't change fields in thirdparty::Protocol with unstable-synapse-quirks 2020-11-23 19:12:19 +01:00
Jonas Platte
dd6446822b
Derive PartialEq and Eq for all string-wrapping enums 2020-11-02 00:29:47 +01:00
Jonas Platte
d34a270919
Allow custom values for more enums 2020-11-02 00:29:47 +01:00
Jonas Platte
1f8e8c2e93
common-macros: Add derive macros for string-wrapping enums 2020-11-02 00:29:41 +01:00
Jonas Platte
f2a78babbd
Avoid creating owned strings in deserialization where not necessary 2020-10-26 01:52:51 +01:00
Jonas Platte
3b3ef1cb75
Remove test_ prefix from lots of test functions 2020-10-25 23:11:08 +01:00
Jonas Platte
e1975c2035
Be more consistent about whitespace 2020-10-24 00:44:01 +02:00
Jonas Platte
3853a36ff6
Support more unusual reference types in Outgoing derive 2020-10-20 02:20:29 +02:00
Timo Kösters
90bd4874e3
Remove Option wrapper around directory filters 2020-10-17 23:06:52 +02:00
Devin Ragotzy
b3196d7f64
Enforce public visibility of all fields of structs deriving Outgoing 2020-10-03 11:39:32 +02:00
Jonas Platte
006582e3f2
Various README updates 2020-09-29 20:30:33 +02:00
Alejandro Domínguez
3869d75837
Support synapse quirk for thirdparty module 2020-09-29 16:42:11 +02:00
Jonas Platte
d5ca199173
Random test change to not trigger Clippy 2020-09-26 16:25:28 +02:00
Jonas Platte
565e3a1ee7
Merge LICENSE files
The Copyright notice is taken out because no single person has a
copyright to the entire codebase.
2020-09-26 15:52:52 +02:00
Jonas Platte
fdd326edf7
Move Outgoing from ruma-api to ruma-common
The derive macro moves from ruma-api-macros to a new ruma-common-macros
crate likewise.
2020-09-22 21:35:10 +02:00
Jonas Platte
7aec43c323
Fix missing serde(default) attributes 2020-09-21 23:06:20 +02:00
Jonas Platte
b4b9d28c8c
Update change log for ruma-common 2020-09-17 21:28:02 +02:00
Jonas Platte
4a9b1aeb3c
Remove borrowing from types in ruma_common::encryption
Until a better solution can be found for types that appear both in
request & response types and would otherwise require incoming types to
appear as fields of outgoing types.
2020-09-12 02:50:57 +02:00
Jonas Platte
eab5368edd
common: Make recently-moved types non-exhaustive 2020-09-11 21:13:04 +02:00
Devin Ragotzy
bedffcd45a
Move PusherData to ruma-common 2020-09-11 19:18:52 +02:00
Devin Ragotzy
a3ae741699
Add unstable-exhaustive-types flag to ruma-common 2020-09-03 20:55:11 +02:00
Jonas Platte
fec07a7426
Update lots of types to the new API standards 2020-08-28 23:37:22 +02:00
Jonas Platte
ab6c56b7de
Drop unnecessary named lifetimes 2020-08-28 21:32:58 +02:00
Jonas Platte
64c5159f04
federation-api: Add lots of non_exhaustive attributes, other minor fixes 2020-08-19 02:04:10 +02:00
Jonas Platte
fbeae794c1
common: Make remaining fully public struct non-exhaustive 2020-08-19 01:38:23 +02:00
Isaiah Inuwa
90af430d6b Copy shared directory types to ruma-common 2020-08-14 12:14:21 +02:00
Jonas Platte
4a1b6d5607
Use DeviceIdBox in ruma-events, ruma-*-api 2020-08-13 21:19:41 +02:00
Jonas Platte
eca333a9ec
Fix doc link 2020-08-12 14:14:06 +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
0cd87a6c07
Update ruma-common changelog 2020-08-09 00:57:06 +02:00