77 Commits

Author SHA1 Message Date
Jonas Platte
b7bcecbb77
serde: Fix lots of issues from previous commit 2022-01-23 14:10:57 +01:00
Jonas Platte
4c859c5aeb
Introduce a Base64 type and use it where applicable 2022-01-13 16:22:21 +01:00
Jonas Platte
2f732bf9c2
signatures: Implement room version 9 redaction change 2021-12-17 18:58:40 +01:00
Jonas Platte
881f64fd64
signatures: Simplify imports 2021-11-27 01:26:02 +01:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names 2021-11-26 01:07:26 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST 2021-11-26 00:40:40 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST 2021-11-25 22:34:40 +01:00
Jonas Platte
438efee143
identifiers: Remove Box<$id> aliases 2021-11-25 21:07:14 +01:00
Jonas Platte
1bb9298059
Update clippy configuration 2021-10-19 14:34:51 +02:00
Jonas Platte
aa5fdf9d22
Merge serde attributes and improve docs 2021-10-08 12:49:13 +02:00
Jonas Platte
3c76fa1492
signatures: Fix verify_json and sign_json enforcing PDU size limits
These functions are used for request signatures too.
2021-08-10 15:22:47 +02:00
Devin Ragotzy
c55dab7122
misc-errors: Allow or make error enums non_exhaustive 2021-08-10 15:22:26 +02:00
Devin Ragotzy
96567a295e
signatures: Fix canonical json functions to now return Result
signatures: Fix canonical json functions to now return Result
2021-08-10 15:22:26 +02:00
Jonas Platte
4dfaad104b
Enable clippy lint str_to_string 2021-07-02 23:02:50 +02:00
Jonas Platte
fc99c32c3d
signatures: Upgrade pkcs8 2021-06-21 17:28:55 +02:00
Devin Ragotzy
337b1e26ef misc: Allow exhaustive for non api related structs 2021-06-18 22:44:00 +02:00
Jonathan de Jong
97776d7132
signatures: Bump pkcs8 to 0.6.1 proper 2021-06-17 19:43:22 +02:00
Jonas Platte
2538b23c26
signatures: Make Algorithm non-exhaustive 2021-06-17 19:43:22 +02:00
Jonas Platte
3f520bf907
signatures: Rename UnknownAlgorithm => UnsupportedAlgorithm 2021-06-17 19:43:22 +02:00
Jonas Platte
4c31b83543
signatures: Add missing newlines 2021-06-17 19:43:22 +02:00
Jonathan de Jong
cc50f8b8dc
Convert ruma-signatures error story into thiserror 2021-06-17 19:43:22 +02:00
Jonathan de Jong
b6f0cb9715
signatures: Replace ring with ed25519-dalek 2021-06-17 19:43:22 +02:00
Jonathan de Jong
42bbb81bd2
Tolerate slightly malformed base64
* add in fixes

* cargo fmt and newline

* sort dependencies
2021-05-24 22:31:36 +02:00
Devin Ragotzy
5090c11843
Enable non-default clippy lints 2021-05-06 11:07:31 +00:00
Devin Ragotzy
c6aa2e0428 Fix clippy warnings across workspace 2021-05-06 06:16:28 -04:00
Jonas Platte
cf291bd5ba
Clean up lint attributes 2021-05-05 23:39:52 +02:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00