Devin Ragotzy
b68b63ab8d
Remove runtime panic caused by header <-> string conversion
2020-07-28 17:13:33 -04:00
Devin Ragotzy
4c01fee5c5
Move new type body init field (last field initialized)
2020-07-28 17:13:26 -04:00
Devin Ragotzy
8a9f15e01f
House keeping, remove &mut self in all methods
...
Improved perf -7.8220%
2020-07-28 07:09:07 -04:00
Devin Ragotzy
77cbcc7ee2
Clean up logging calls
2020-07-27 17:10:06 -04:00
Devin Ragotzy
4990dac5fe
Move all event access to _get_event method
...
We now use the event_map when possible, only accessing the state store
when event_map fails. A -4.8578% increase in perf was observed.
2020-07-27 16:47:55 -04:00
Jonas Platte
39c36176a6
Make in_reply_to in RelatesTo optional
2020-07-27 21:30:51 +02:00
timokoesters
d5d2d1d893
Make is_empty helpers in sync_events public
2020-07-27 10:34:17 +02:00
Devin Ragotzy
d8fb5ca112
Add benchmark for longer auth chain and Error type
...
This required that the code being run in the benchmark be tested to
verify it works correctly. Now work can begin cleaning up and optimizing
state-res.
2020-07-27 00:09:21 -04:00
Devin Ragotzy
4a34375449
Support multiple attribute arguments in ruma_event attribute ( #161 )
...
* Add parsing to allow ruma_event attribute to accept mutli args
* fixup! Add parsing to allow ruma_event attribute to accept mutli args
* Refactor MetaAttrs::parse and resolve review issues
2020-07-26 19:18:28 -04:00
Jonas Platte
1862d15365
Remove glob imports of C-like enums
2020-07-26 17:13:08 +02:00
Jonas Platte
3f3cf83ceb
Remove glob imports of modules
2020-07-26 17:13:00 +02:00
Jonas Platte
42e07308e1
Remove unused import
2020-07-26 17:02:42 +02:00
Jonas Platte
e047c647dd
fixup
2020-07-26 16:34:56 +02:00
Jonas Platte
05d0a3c04b
fixup
2020-07-26 16:30:11 +02:00
Jonas Platte
d7463ce37d
Remove things that can't be properly deprecated
...
See https://github.com/rust-lang/rust/issues/47236
2020-07-26 16:24:36 +02:00
Jonas Platte
5ca2fd78a8
ruma: Reexport identifier types from the crate root
2020-07-26 16:16:30 +02:00
Jonas Platte
2e0a765820
Fix mistakenly renamed struct
2020-07-26 16:04:12 +02:00
Jonas Platte
c363494905
Release ruma-identifiers 0.17.1
2020-07-26 15:04:20 +02:00
Jonas Platte
82b7cc1637
identifiers: Add as_bytes to all types with as_str
2020-07-26 14:55:39 +02:00
Jonas Platte
2e5fceb2b5
identifiers: Simplify generated as_str implementations
2020-07-26 14:44:37 +02:00
Devin Ragotzy
ea0b6ad530
Update readme to more accuratly reflect API
2020-07-25 08:26:26 -04:00
Devin Ragotzy
0ae8c8fe09
Add benchmarks for lexi_topo and state resolve method
2020-07-25 00:03:33 -04:00
Devin Ragotzy
29d86ebf3c
Fix separate ignoring missing ids and auth_check details
2020-07-24 23:14:30 -04:00
Jonas Platte
08fbace022
Mark PinnedEventsEventContent as non_exhaustive
2020-07-25 03:04:19 +02:00
Jonas Platte
be175bbae6
Mark JoinRulesEventContent as non_exhaustive
2020-07-25 02:58:37 +02:00
Bernardo Yusti
ea2992a412
federation-api: Add V2 send join
2020-07-25 02:12:27 +02:00
Jonas Platte
e01706d1bb
Accept and Into<String> for FormattedBody::html
2020-07-25 02:03:36 +02:00
Jonas Platte
f56b530dc3
Rename TextMessageEventContent::new_plain to plain
2020-07-25 01:59:18 +02:00
Jonas Platte
76c2f5c449
Add a convenience constructor to FormattedBody
2020-07-25 01:44:06 +02:00
Jonas Platte
c8b1aad189
Add macros to create identifiers from string slices
2020-07-24 22:22:25 +02:00
Jonas Platte
ce04ea10bf
Remove no longer needed extern crate proc_macro;
declarations
2020-07-24 21:21:13 +02:00
Jonas Platte
8faeef4fef
identifiers: Remove outdated allow attribute
2020-07-24 21:15:24 +02:00
Jonas Platte
617a40e3e9
identifiers: Change deny attribute to warn
2020-07-24 21:15:04 +02:00
Jonas Platte
85e2ae3d48
Remove ugly commas
2020-07-24 21:13:41 +02:00
Jonas Platte
e3e8911d8b
ruma-appservice-api: Change deny attribute to warn
2020-07-24 21:11:35 +02:00
Jonas Platte
360628067b
Release ruma-common 0.2.0
2020-07-24 21:08:46 +02:00
Jonas Platte
a74833a19b
ruma-common: Add a changelog
2020-07-24 20:56:42 +02:00
Jonas Platte
324d339f06
ruma-common: Make most public types non-exhaustive
2020-07-24 20:55:59 +02:00
Jonas Platte
f9e76358a1
Fix typos
2020-07-24 20:53:01 +02:00
Jonas Platte
69c8914b03
ruma-common: Small refactorings in any_push_rule.rs
...
* Make field order consistent
* Use `Self` type alias for shorter code
2020-07-24 20:50:24 +02:00
Jonas Platte
c89905283f
ruma-common: Move AnyPushRule into its own module
2020-07-24 20:40:51 +02:00
Jonas Platte
9f8ceb6286
Update visibility attributes on serde helper types
2020-07-24 20:35:56 +02:00
Jonas Platte
6286a2c692
Change deny attribute to warn in ruma-client-api
2020-07-24 20:31:07 +02:00
Jonas Platte
7053f1ef07
Set warn(missing_debug_implementations) in ruma-common
2020-07-24 20:30:54 +02:00
Jonas Platte
26850dbafb
Simplify MegolmV1AesSha2Content construction
2020-07-24 20:25:04 +02:00
Jonas Platte
e04ed242fc
Split ruma_common::push into more submodules
2020-07-24 20:15:29 +02:00
Devin Ragotzy
4be63127f7
Add into_full_event and From<> impls to convert between sync and full events
2020-07-24 14:45:38 +02:00
Devin R
106cab46bc
lexi_topo_sort needs to return a neg power_level to sort properly
...
All tests pass!!! Changed println! to logger calls.
2020-07-23 09:38:47 -04:00
Devin R
3329dc7345
Fix clippy warnings in identifiers and events-macros
2020-07-23 15:01:12 +02:00
Devin R
56ff7c05e9
Remove the Ident from EventKind and impl Display for both enums
2020-07-23 15:01:12 +02:00