Commit graph

110 commits

Author SHA1 Message Date
Rob Wagner
b9261c0988
Update README.md 2023-12-03 15:47:22 -05:00
Rob Wagner
3859d9beb6
Update README.md 2023-12-03 15:33:27 -05:00
Rob Wagner
3ac0d5ac49
Update to v0.5 2023-12-03 15:20:09 -05:00
Rob
1b3febbf16
Merge pull request #9 from ItsEthra/code-dedup
Merged serde responders to remove code 

- Removed responders::serde, now all triggers in responders module use HxEvent which has additional data fields when serde feature is enabled.
- Removed responders::serde::HxLocation, now responders::HxLocation is a struct with a uri field and additional options field when serde feature is enabled.
- HxResponseTrigger* responders are now in responders/trigger.rs, HxLocation responder is now in responders/location.rs.
- Implemented TryFrom<&str> for uri-like responders.
- Renamed HxError::Serialization to HxError::Json.
- Added test for HxLocation serialization.
- Do not add HxResponseTrigger* header if there are no events.
2023-12-03 15:18:12 -05:00
ItsEthra
2d3b94d37d Moved HxError && implemented Error trait 2023-12-03 22:41:37 +03:00
ItsEthra
c1c54a17f5 Inlined reexports 2023-12-03 22:38:43 +03:00
ItsEthra
8e1094e043 Generalized response impls 2023-12-03 22:38:24 +03:00
ItsEthra
9c894b8d19 Added more from impls for responders 2023-12-03 19:33:52 +03:00
ItsEthra
523cbb0371 Added helper methods to HxLocation 2023-12-03 18:56:28 +03:00
ItsEthra
d7a8ee55b1 Hidden ResponseFuture type 2023-12-03 15:16:33 +03:00
ItsEthra
140a74c071 Use http::Uri in HxCurrentUrl 2023-12-03 15:13:07 +03:00
ItsEthra
a04e131a69 Combined HxResposeTrigger* into one struct 2023-12-03 15:04:17 +03:00
ItsEthra
f07518d5a2 Fixed docs 2023-12-01 22:46:54 +03:00
ItsEthra
1dfff29673 Moved HxLocation && HxTrigger* into different modules 2023-12-01 22:05:31 +03:00
ItsEthra
a223399361 Code dedup 2023-12-01 21:41:42 +03:00
Rob Wagner
66d444b760
Update CHANGELOG.md 2023-11-30 18:33:20 -05:00
Rob
9ee6bf7fc2
Merge pull request #8 from ItsEthra/axum-core
Use axum-core,async-trait,http instead of axum
2023-11-30 18:28:14 -05:00
ItsEthra
3f23ac7251 Use axum-core,async-trait,http instead of axum 2023-11-30 23:01:19 +03:00
Rob
02cb1e64c1
Merge pull request #7 from ItsEthra/cfg-badges
Generate docs with cfg badges using nightly compiler
2023-11-30 11:55:58 -05:00
ItsEthra
63efc3ffd5 Generate docs with cfg badges 2023-11-30 18:12:37 +03:00
Rob Wagner
6af52af17f
Update README.md 2023-11-27 19:48:09 -05:00
Rob
c546f23fd0
Merge pull request #6 from robertwayne/axum-0.7
Migrate main to axum 0.7 instead of the unstable git branch
2023-11-27 19:44:07 -05:00
Rob Wagner
0b7c48043f
Update README.md 2023-11-27 19:40:02 -05:00
Rob Wagner
aa9087b76f
Update CHANGELOG.md 2023-11-27 19:38:23 -05:00
Rob Wagner
a5928f10a6
Update axum to 0.7 2023-11-27 19:27:05 -05:00
Rob Wagner
138087edc4
Update README.md 2023-11-27 19:26:50 -05:00
Rob Wagner
36df71fb2f
Adds a helper From<T> impl for basic HxResponseTrigger* variants.
This is purely to help make the public API more friendly and less verbose.
2023-10-24 00:26:31 -04:00
Rob Wagner
35aa41f5ba
Update README.md 2023-10-23 23:58:41 -04:00
Rob Wagner
c85fc831f3
Update CHANGELOG.md 2023-10-23 23:50:47 -04:00
Rob Wagner
cd3e7a5461
Update README.md 2023-10-23 23:26:00 -04:00
Rob Wagner
ed1820d7fc
Update README.md 2023-10-23 23:25:18 -04:00
Rob Wagner
f406f74591
Add a test for the double-escape bug 2023-10-23 23:13:31 -04:00
Rob Wagner
6c7ddeec19
Add Debug to HxError 2023-10-23 23:13:09 -04:00
Rob Wagner
a1bac4b30e
Remove unnecessary .to_string() call when creating a header from JSON data
The original version would double quote values, resulting in serde_json inserting
escape characters into the final string value, which prevented the header from
being parsed by htmx properly.
2023-10-23 22:52:01 -04:00
Rob Wagner
81b9c548b3
Update Cargo.toml 2023-10-23 22:11:21 -04:00
Rob Wagner
40243f32da
Add missing comment on HxEvent 2023-10-23 22:09:52 -04:00
Rob Wagner
d19ba7be1d
Update README.md 2023-10-23 22:07:24 -04:00
Rob Wagner
1e5f9088ed
Update README.md 2023-10-23 22:06:43 -04:00
Rob Wagner
9737260095
Update CHANGELOG.md 2023-10-23 22:05:34 -04:00
Rob Wagner
4171343468
Update Cargo.toml meta information 2023-10-23 22:03:50 -04:00
Rob Wagner
bab74e0d38
Update CHANGELOG.md 2023-10-23 22:01:05 -04:00
Rob Wagner
ddb22f3b9d
Update README.md 2023-10-23 21:58:40 -04:00
Rob Wagner
7206dd1852
Update README.md 2023-10-23 21:57:00 -04:00
Rob Wagner
3af87ed81c
Update README.md 2023-10-23 21:55:47 -04:00
Rob Wagner
b4f2dcbd88
Comments for API docs 2023-10-23 21:54:49 -04:00
Rob Wagner
ff5db1e718
Update README.md 2023-10-23 21:51:06 -04:00
Rob Wagner
145abcc92a
Shorten import path in comments 2023-10-23 21:40:21 -04:00
Rob Wagner
435cbf56db
Update comments; fix naming on serde::Hx* variants 2023-10-23 21:37:20 -04:00
Rob Wagner
2045b19c6f
Update README.md 2023-10-23 21:24:00 -04:00
Rob Wagner
9faaea4f4e
Minor code cleanup 2023-10-23 21:08:00 -04:00