Jonas Platte
b3c646a2b7
Release ruma-events 0.22.0-alpha.3
2021-04-17 19:33:51 +02:00
Devin Ragotzy
29b49d2edf
events: Add codegen for ephemeral event enum room_id accessor
2021-04-16 23:42:29 +02:00
Jonas Platte
e4ae2a40ee
Qualify more paths in macro-generated code
2021-04-13 21:50:01 +02:00
Jonas Platte
2a8b4a0478
Release ruma-identifiers 0.19.0
2021-04-13 21:12:24 +02:00
Jonas Platte
355b462431
events-macros: Make methods on Copy
type take self by value
2021-04-13 13:17:09 +02:00
Kévin Commaille
963400979b
docs: Harmonize ruma modules descriptions
2021-04-07 12:14:49 +02:00
Jonas Platte
1878e8aae0
Replace some turbofishes with type annotations
2021-04-05 13:13:28 +02:00
Jonas Platte
1bf4157a89
Add favicon and logo URLs for rustdoc
2021-04-05 11:42:07 +02:00
Jonas Platte
39a8c26263
Release ruma-identifiers 0.18.1
2021-04-03 17:56:01 +02:00
Jonas Platte
b79fd0c3aa
Release ruma-identifiers 0.18.0
2021-03-23 21:08:44 +01:00
Jonas Platte
c27b17e5f9
Upgrade proc-macro-crate to 1.0.0
2021-03-23 20:43:58 +01:00
Jonas Platte
ad608c0013
Replace syn::Error::to_compile_error with into_compile_error
2021-03-09 19:12:21 +01:00
Akshay
6bbb42303b
Add event_type
accessor method to event enums
2021-02-11 12:48:33 +01:00
Akshay
8fadffa31d
events-macros: Use lookahead1 instead of parse().is_ok()
2021-02-06 18:23:40 +01:00
Jonas Platte
7846142690
events: Allow state_key to be empty in InitialStateEvent
2021-02-06 15:15:57 +01:00
Jonas Platte
f2d9e5b019
events-macros: Reduce turbofish usage
2021-02-06 14:55:32 +01:00
Jonas Platte
ca1f334ded
Remove documentation links from all Cargo.toml
s
...
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
8de0776796
Stop relying on features activated through dev-dependencies
2021-01-04 01:51:36 +01:00
Jonas Platte
b95ab27272
Release ruma-events 0.22.0-alpha.2
2021-01-02 14:49:00 +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
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
212153ea5f
Mark macro-generated trait implementations as #[automatically_derived]
2020-12-13 13:29:03 +01:00
Damir Jelić
7ec2b0b555
ruma-events: Create separate to-device content structs
...
While it's possible to share the content between different event types
in the usual case some event types have slightly different contents if
they are sent out as a to-device event vs a room message event.
The canonical example for this are key verification events where the
to-device version has a transaction id field but the room message
version uses event relationships for the same purpose.
This patch makes it possible for to-device events to have different
content structs. Type aliases are used where a common struct can be
used.
2020-12-04 19:48:34 +01:00
Jonas Platte
8ccf0f128b
Normalize formatting of empty curly braces
2020-11-27 23:07:32 +01:00
Jonas Platte
675efbc5f1
events-macros: Improve readability, fix lines >100 chars
2020-11-27 23:07:09 +01:00
Jonas Platte
e7f55ea2c6
Rewrap comments
2020-11-27 18:22:18 +01:00
Jonas Platte
ee6d258bdf
events: Remove some needless Result wrapping
2020-11-25 18:10:19 +01:00
Jonas Platte
b7e15efe43
events: Support attributes on items in event_enum!
2020-11-24 03:25:02 +01:00
Jonas Platte
e1975c2035
Be more consistent about whitespace
2020-10-24 00:44:01 +02:00
skim
5b904ddbd7
Update links to main branch
2020-10-13 10:24:54 +02:00
Jonas Platte
006582e3f2
Various README updates
2020-09-29 20:30:33 +02:00
Jonas Platte
8b9e20b842
Fix outdated links
2020-09-29 20:10:54 +02:00
Jonas Platte
e0e7f901d0
Merge license sections in README.md's
2020-09-26 16:26:32 +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
fa44fd5c55
Remove outdated Travis badges
2020-09-26 15:37:08 +02:00
Jonas Platte
c87ec49594
Update authors field in ruma-events-macros/Cargo.toml
2020-09-22 21:04:00 +02:00
Jonas Platte
7122720bfe
Add LICENSE file to ruma-events-macros
...
For some reason it was missing.
2020-09-22 21:03:02 +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
6006e0b52e
Rename local variable
2020-08-17 23:24:13 +02:00
Devin Ragotzy
342181ab1a
Use proc_macro_crate name in the event_enum! macro code-gen
2020-08-11 23:47:34 +02:00
Devin Ragotzy
e2f84679b3
Use proc_macro_crate name in the event content derives
2020-08-11 23:47:34 +02:00
Devin Ragotzy
9bc257b19e
Use proc_macro_crate name in the Event derive
2020-08-11 23:47:34 +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
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
Jonas Platte
30e73186e7
Bump dependencies
2020-08-07 19:13:00 +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