63 Commits

Author SHA1 Message Date
Jonas Platte
d27584ae3b
serde: Add missing docs 2021-04-26 16:40:06 +02:00
Jonas Platte
d2eb399bf6
serde: Add &self accessor methods to CanonicalJsonValue 2021-04-26 16:23:10 +02:00
Jonas Platte
28a9083a26
serde: Implement conversion of CanonicalJsonValue to JsonValue 2021-04-26 15:53:54 +02:00
132ikl
190376bf0d
client-api: Fix unsetting avatar url when compat is enabled 2021-04-24 19:47:17 +00:00
Jonas Platte
f818b53ca1
Make conversions from Ruma types to http types generic
So users can select the Body type that makes the most sense for them.
2021-04-23 13:26:10 +02:00
Jonas Platte
2923f1066e
serde: Add test for issue 446 2021-04-07 18:42:18 +02:00
Jonas Platte
5de8d3be5d
serde: Rewrite some tests to use assert_matches 2021-04-07 18:35:04 +02:00
Kévin Commaille
963400979b
docs: Harmonize ruma modules descriptions 2021-04-07 12:14:49 +02:00
Jonas Platte
466b8679d6
Replace all uses of ruma_serde::empty::Empty
… and remove it from the public API.
2021-04-05 18:57:42 +02:00
Jonas Platte
2805dd733b
serde: Improve error handling in time modules 2021-04-05 17:27:13 +02:00
Jonas Platte
1bf4157a89
Add favicon and logo URLs for rustdoc 2021-04-05 11:42:07 +02:00
Jonas Platte
c910d57b14
Release ruma-serde 0.3.1 2021-03-23 20:58:53 +01:00
Jonas Platte
71682182f7
serde: Update README.md
The information presented on serde_qs was actually wrong.
2021-03-23 20:55:39 +01:00
Jonas Platte
dbe470ed54
serde: Don't error when deserializing IgnoredAny from a list 2021-03-23 20:55:22 +01:00
Jonas Platte
a20c75d536
Fix import grouping issues 2021-02-25 20:55:19 +01:00
Jonas Platte
5b004d5ed7
Don't import serde_json::Map 2021-02-11 19:00:57 +01:00
Jonas Platte
d8c5c326e6
serde: Simplify Deserializer implementation for ValOrVec 2021-02-03 19:27:21 +01:00
Jonas Platte
00121bdb4b
Fix inconsistent #[test] module naming 2021-02-02 11:44:30 +01:00
Jonas Platte
2705b27df1
Remove useless questionmark + Ok
Thanks, clippy!
2021-01-19 11:46:40 +01:00
Jonas Platte
ca1f334ded
Remove documentation links from all Cargo.tomls
It was wrong for ruma-federation-api and useless for all others since
crates.io will link to docs.rs automatically if no link is given.
2021-01-17 17:00:09 +01:00
Jonas Platte
2ebd827355
Release ruma-serde 0.3.0 2021-01-02 13:04:39 +01:00
Jonas Platte
25d283fa81
serde: Small code style change 2020-12-24 02:49:55 +01:00
Jonas Platte
f55e2b2cc6
Bump dependency requirements 2020-12-24 02:48:01 +01:00
Jonas Platte
168ac66b6f
Update ruma-serde-macros version to be in sync with ruma-serde 2020-12-24 02:05:50 +01:00
Jonas Platte
3989e52844
Upgrade js_int to 0.2.0 2020-12-24 01:53:30 +01:00
Jonas Platte
e8b1e35714
serde: Optimize btreemap_int_or_string_to_int_values
Don't allocate a temporary `BTreeMap<T, IntWrap>`.
2020-12-12 17:57:51 +01:00
Jonas Platte
22ab60128a
serde: Fix int_or_string_to_int deserialization helper
It's unclear why the previous method didn't work, but this one definitely does.
2020-12-12 17:45:16 +01:00
Devin Ragotzy
724a48d616
Add examples to the docs of Raw and the ruma-events module 2020-12-07 17:57:23 +01:00
Jonas Platte
51ddcca9f5
Fix a typo 2020-12-03 22:28:23 +01:00
Jonas Platte
e7b5a533d6
Move Outgoing test out of ruma_serde to avoid cyclic dev-dependency 2020-12-02 18:51:35 +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
Jonas Platte
ea778a0fdc
serde: Move string-related helpers into a new module 2020-11-28 02:01:12 +01:00
Jonas Platte
e7f55ea2c6
Rewrap comments 2020-11-27 18:22:18 +01:00
Jonas Platte
abc18fae39
Fix some links in documentation 2020-11-24 03:25:02 +01:00
Alejandro Domínguez
51573238a9 Add function to deserialize BTreeMap with values of numbers and strings to integers 2020-11-20 14:31:10 +01:00
Alejandro Domínguez
0ac2f401f8 Add function to deserialize numbers and strings as an integer 2020-11-20 14:31:10 +01:00
Devin Ragotzy
bc43e94d7e
Add helper methods for CanonicalJsonObject construction 2020-10-29 19:31:23 +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
16dd20d64e
Improve docs for impl Display for CanonicalJsonValue
and extract the doctest into a regular test.
2020-10-19 17:56:30 +02:00
Jonas Platte
4b81beaf05
Remove unnecessary lifetimes 2020-10-11 14:25:43 +02:00
Jonas Platte
98982be7fb
Add Default implementation for CanonicalJsonValue 2020-10-04 22:46:48 +02:00
Jonas Platte
e795c7fcd6
Add free function to_canonical_json_string
and move the canonical JSON error type from the canonical_json::value
module to canonical_json.
2020-10-04 22:46:24 +02:00
Devin Ragotzy
92f1fb463a
Create CanonicalJsonValue in ruma-serde 2020-09-28 11:17:46 +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
Julian Tescher
26ae56d168
push-gateway-api: Add notify API (#260)
Co-authored-by: Devin Ragotzy <devin.ragotzy@gmail.com>
2020-09-12 23:15:24 +02:00
Julian Tescher
ebd1387bac
federation-api: Add retrieval endpoints 2020-09-11 19:12:48 +02:00
Jonas Platte
bfe4e9fa27
Add ruma_serde::is_empty
This will be used for serde attributes that are copied to incoming types
and thus actually have to function for multiple types.
2020-08-28 22:53:40 +02:00
Jonas Platte
3428cabdca
Resolve TODO 2020-08-18 00:03:24 +02:00