Commit Graph

35 Commits

Author SHA1 Message Date
Jim Crossley 94f65f656d Compatiblity with actix-web 4.0.0-beta.8
Fixes #114

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-12-16 13:09:29 -05:00
Jim Crossley 1e89203cbc Make the reqwest/wasm example a little more helpful 2021-10-27 23:18:04 -04:00
Jim Crossley 9480a0e944 Add some example help 2021-10-20 21:46:44 -04:00
Dejan Bosanac 1e00f6fe04 Update reqwest wasm example so it compiles and run properly again
Signed-off-by: Dejan Bosanac <dejan@sensatic.net>
2021-09-10 10:56:14 -04:00
andrew webber (personal) 6074b4db7e Add Axum binding
Signed-off-by: andrew webber (personal) <andrewvwebber@googlemail.com>
2021-08-31 15:40:04 -04:00
Francesco Guardiani 589db8e5be
Renamed features (#140)
* Renamed features
Moved all bindings under a binding crate

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Cargo fmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Now this should build

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Use the new cache plugin

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fix

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fix the build

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fixed doc links

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Change link

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2021-07-07 10:47:30 +02:00
Jim Crossley 432259bd26
De-workspace-ification (#135)
Now that we've refactored the protocol bindings from crates to
feature-guarded modules (PR #131), we can remove the workspaces for
those crates.

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-06-30 14:13:41 +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
slinkydeveloper c57be0b99b Node example now builds
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2021-06-28 16:39:33 +02:00
Jim Crossley 538b647804 New feature: cloudevents-warp
Conditionally compile warp module when enabled

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

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-06-25 10:12:23 -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
Matthias Wessendorf 303ed92545
💄 Use stream() instead of deprecated start() (#126)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2021-05-24 09:23:07 +02:00
dependabot[bot] a1358ea5b7
Bump url-parse in /example-projects/reqwest-wasm-example (#122)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 11:05:15 +02:00
Francesco Guardiani da40d3d563
Tokio 1.0 release bumps! (#113)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2021-02-08 16:39:11 +01:00
dependabot[bot] 7f63bd74ec
Bump ini from 1.3.5 to 1.3.8 in /example-projects/reqwest-wasm-example (#108)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-14 08:56:56 +01:00
tottoto 579665f226
Remove actix_rt dependency in actix_web example (#102)
Signed-off-by: tottoto <tottotodev@gmail.com>
2020-11-06 09:35:39 +01:00
Marko Milenković 5e5aca54be
Add support for `seanmonstar/warp` web server framework (#97)
Initial take on cloud events support for `seanmonstar/warp`

Signed-off-by: Marko Milenković <milenkovicm@users.noreply.github.com>
2020-11-04 12:12:55 +01:00
Francesco Guardiani d69ab904d1
Release bumps (#98)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-11-02 09:35:39 +01:00
slinkydeveloper 6ec93db965 Fix again kafka dep
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-11-02 08:46:32 +01:00
slinkydeveloper 47d9c272b2 Fixed rdkafka example
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-10-29 19:14:37 +01:00
slinkydeveloper 6f58d63e72 Fixed actix-web-example
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-10-29 19:14:19 +01:00
Francesco Guardiani 500f8e76e6
Cleanup to follow C-CONV (#87)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-10-12 15:47:22 +02:00
Francesco Guardiani 35b37e5a45
Version bump (#74)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-08-06 15:42:56 +02:00
Francesco Guardiani 4700fa267f
Improved docs in integrations crates (#71)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-08-06 14:56:31 +02:00
Pranav Bhatt 3a56fcc641
Implementing Kafka Protocol Binding for CloudEvents using rdkafka-rust (#60)
Signed-off-by: adpranavb2000@gmail.com <adpranavb2000@gmail.com>

Co-authored-by: slinkydeveloper <francescoguard@gmail.com>
2020-08-06 14:51:51 +02:00
dependabot[bot] 25af32ee3a
Bump elliptic in /example-projects/reqwest-wasm-example (#65)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 08:34:45 +02:00
dependabot[bot] fc3790a7bd
Bump lodash in /example-projects/reqwest-wasm-example (#59)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-21 08:54:35 +02:00
Pranav Bhatt 57f42cf753
Improve api (#58)
* wip improve_api

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improved cloudevent-sdk-reqwest api

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api finalise#1

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api(reqwest) finalise#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api(reqwest) finalise#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* tested api calls within rust

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* tested api calls within rust#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api actix finalise#1

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api actix finalise#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* added documentation for actix api modifications

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* added documentation for actix api modifications#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api actix-web finalise#3

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* minor fixes for improve_api(actix)

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>
2020-06-24 09:35:49 +02:00
Pranav Bhatt f6770b4591
Improve api of module cloudevents-sdk-reqwest (#57)
* wip improve_api

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improved cloudevent-sdk-reqwest api

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api finalise#1

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api(reqwest) finalise#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api(reqwest) finalise#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api(reqwest) finalise#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api(reqwest) finalise#3

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api(reqwest) finalise#4

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* issue with example

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* tested api calls within rust

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* tested api calls within rust#2

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>

* improve_api reqwest finalise

Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>
2020-06-22 16:27:05 +02:00
dependabot[bot] 7c8206b4e1
Bump websocket-extensions in /example-projects/reqwest-wasm-example (#56)
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-08 12:14:36 +02:00
Francesco Guardiani b832b6bcf4
Redesigned EventBuilder (#53)
* Progress

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Builder finished

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fixed all integrations

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fmt'ed

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fmt'ed part 2

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fixed tests in reqwest integration

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* fmt'ed again

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-05-26 15:35:30 +02:00
Francesco Guardiani 594e0a5467
Reqwest wasm example (#43)
* Fixed cloudevents sdk to compile with wasm

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fixed warning

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* cargo fmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fixed

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Added cors to actix-web example

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Added reqwest wasm example

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-05-20 11:37:55 +02:00
Francesco Guardiani 2586322a68
Added actix-web example (#38)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-05-18 20:57:37 +02:00