Commit Graph

4 Commits

Author SHA1 Message Date
Dejan Bosanac 9f430a442c Add Actix structured test and clean up a bit
Signed-off-by: Dejan Bosanac <dejan@sensatic.net>
2021-07-06 15:41:29 +02:00
Jim Crossley d45811604d Implement actix-web FromRequest and Responder
Fixes #130

I'm not entirely sure why this works, but the compiler seems to like
it! :D

The example is intentionally as simple as it gets, but a "real" app
should probably return Result<Event, Error> from its handlers.

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-06-28 11:21:32 -04:00
Jim Crossley 51b49f1335 New feature: cloudevents-reqwest
Conditionally compile reqwest module when enabled

This resulted in a naming conflict between my desired feature name,
"reqwest", and the optional dependency itself. So I adopted the
convention of prefixing the features with "cloudevents-".

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-06-25 10:12:23 -04:00
Jim Crossley 935234a9cb New feature: cloudevents-actix
Conditionally compile actix module when enabled

Mostly straightforward, though I don't particularly love that dev-deps
can't be optional: https://github.com/rust-lang/cargo/issues/1596

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-06-25 10:12:23 -04:00