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
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
968c52b117
api: Rename request macro attribute query_map to query_all
...
Remove its IntoIterator bound to allow to represent
the query fields as a single struct or enum.
2024-06-21 19:15:59 +02:00
Kévin Commaille
05c12bf3ba
api: Clarify that access tokens using query parameter are deprecated
...
According to MSC4126 / Matrix 1.11
2024-06-21 18:21:45 +02:00
Kévin Commaille
b8e4d5b6a2
misc: Update spec links to latest version
2024-06-21 18:10:14 +02:00
Kévin Commaille
2dcc83278a
api: Add MatrixVersion::V1_11
2024-06-21 15:19:34 +02:00
Kévin Commaille
1910a7f092
api: Fix response macro docs
2024-06-19 14:35:48 +02:00
Mikoto
629b06e1e4
thirdparty: Implement Borrow/Hash/Eq for ThirdPartyIdentifier
2024-06-18 23:35:19 +02:00
Kévin Commaille
64b3838113
thirdparty: Fix unstable-unspecified feature being non-additive
2024-06-18 13:41:47 +02:00
Jonas Platte
d91e6d7e63
Simplify docsrs feature usage
...
- Don't instruct docs.rs to set it, it does so by default now:
https://github.com/rust-lang/docs.rs/pull/2390
- Because of that, check-cfg also recognizes it and does not need
extra configuration either.
2024-05-30 10:35:07 +02:00
Damir Jelić
a12c38c532
common: Add a error variant for unexpected header values
2024-05-14 18:18:15 +02:00
Damir Jelić
b7b9816314
Make the url crate a workspace dependency
2024-05-14 18:18:15 +02:00
Kévin Commaille
d6c4533b7d
chore: Fix new warnings
2024-05-12 15:49:28 +02:00
Kévin Commaille
75455d3e0f
Release ruma-common 0.13.0
2024-05-09 12:14:59 +02:00
Kévin Commaille
10c7e59c57
client-api: Add helper methods to convert SystemTime from/to a HTTP date
2024-05-08 19:09:13 +02:00
Kévin Commaille
1689a50639
api: Add changelog entry for http major version bump
2024-04-30 17:03:04 +02:00
avdb13
8881755235
api: Add status parameter to request attribute macro
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-04-24 14:44:49 +02:00
Kévin Commaille
21b644ac6a
identifiers: Allow to clone MatrixToUri and MatrixUri
2024-04-21 14:25:10 +02:00
Benjamin Bouvier
ccc0a64ba3
events: allow deserialize a m.tag
's order
as an integer ( #1767 )
...
Some servers use an integer to represent e.g. `1` for the order, instead of the double representation (that would be `1.` or `1.0)`. This makes it possible to parse such values as integers too, since they're technically not double. Implementing `visit_u64` and `visit_i64` covers all the smaller sizes too, so I've implemented only that here.
2024-04-18 09:15:27 +00:00
Kévin Commaille
31dc4a2dfb
client-api: Add support for the Retry-After header
...
According to MSC4041 / Matrix 1.10
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-04-07 13:52:43 +00:00
Jonas Platte
4a02b97aa3
Update website URL
2024-04-04 13:20:58 +02:00
Hubert Chathi
c5f8137ba9
ruma: Export web_time as time
2024-03-27 18:48:55 +01:00
Kévin Commaille
0e7c91d789
docs: Point links to v1.10 of the spec
2024-03-22 21:28:39 +01:00
Kévin Commaille
041d871781
api: Add MatrixVersion::V1_10
2024-03-22 21:28:39 +01:00
Hubert Chathi
4c00bd010d
Also use Duration and UNIX_TIME from web-time crate
2024-03-21 15:20:03 +01:00
Damir Jelić
ccd3b81557
Use web-time to return a SystemTime that works under WASM
...
The `MilliSecondsSinceUnixEpoch::to_system_time()` method returns the
`SystemTime` type from the standard library.
The `std::time::SystemTime::elapsed()` method sadly panics under WASM.
Instead of returning the `SystemTime` from the standard library we're
now returning a drop-in replacement of this type coming from the web-time
crate.
2024-03-20 12:19:18 +01:00
Jonas Platte
95707b86c3
Provide a more helpful Debug impl for timestamps
2024-03-16 00:23:31 +01:00
Matthias Ahouansou
bbf81544f2
api: support for appservice-exclusive authentication
2024-03-13 22:06:58 +01:00
Kévin Commaille
f652cbb60f
api: Add support for optional authentication
2024-03-07 12:30:28 +01:00
Kévin Commaille
76c58b143a
push: Don't use deprecated methods
2024-02-14 13:07:21 +01:00
Kévin Commaille
b7829d5607
Fix test
2023-12-26 17:28:43 +01:00
Kévin Commaille
00f8a6743b
push: Allow to deserialize Ruleset with missing fields
...
According to the Matrix Specification, no field is required.
2023-12-26 17:28:43 +01:00
Kévin Commaille
56d8a59c1b
push: Add accessor for the RuleKind of Predefined{*}RuleId
2023-12-05 10:56:36 +01:00
Kévin Commaille
ba75b09a45
push: Implement AsRef<str> for PredefinedRuleId
2023-12-05 10:56:36 +01:00
Kévin Commaille
90d3605b87
push: Make power levels optional in PushConditionRoomCtx
2023-12-03 13:03:06 +01:00
Kévin Commaille
4efca6fba5
docs: Point links to v1.9 of the spec
2023-11-30 14:42:14 +01:00
Kévin Commaille
ac2f725bcc
api: Add support for Matrix 1.9
2023-11-30 14:42:14 +01:00
Kévin Commaille
b4133b7863
push: Stabilize support for MSC3958
2023-11-30 14:37:17 +01:00
Jonas Platte
5446ea979b
Update trybuild tests
...
There's a new stable release of Rust, error messages were tweaked.
2023-11-20 20:30:46 +01:00
Jonas Platte
5d7c1f5330
Release ruma-common 0.12.1
2023-11-16 10:43:15 +01:00
Kévin Commaille
9b07772d1a
push: Allow to deserialize (New)ConditionalPushRule without conditions
2023-11-15 15:10:42 +01:00
Jonas Platte
e8bc589e52
Transition to type privacy lints
2023-11-09 09:50:04 +01:00
Jonas Platte
c82f600d6a
Fix new lints
2023-11-08 18:16:44 +01:00
Jonas Platte
db06702a0f
ci: Upgrade nightly toolchain
2023-11-08 18:03:26 +01:00
Jonas Platte
e658b8b128
Remove 'www.' from ruma.io URLs
2023-10-12 15:44:00 +02:00
Jonas Platte
7cee1787a2
Release ruma-common 0.12.0
2023-10-05 11:21:46 +02:00
Jonas Platte
a5d62dca22
identifiers: Rename room_or_room_alias_id module to match the type
2023-09-28 16:44:16 +02:00
Jonas Platte
cf1c7b0b12
identifiers: Simplify implementation of RoomOrAliasId::variant
2023-09-28 16:43:37 +02:00
Jonas Platte
d78f56e85c
identifiers: Test server_name function in room_id tests
2023-09-28 16:43:16 +02:00