Rust library to interact with CloudEvents
Go to file
Francesco Guardiani 8079a14ec7 Added more meta to Cargo.toml
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-05-20 13:52:30 +02:00
.github/workflows Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
cloudevents-sdk-actix-web Added more meta to Cargo.toml 2020-05-20 13:52:30 +02:00
cloudevents-sdk-reqwest Added more meta to Cargo.toml 2020-05-20 13:52:30 +02:00
example-projects Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
src Reorganized symbol exports for 0.1 release (#45) 2020-05-20 11:43:47 +02:00
tests cargo fix + cargo fmt 2020-05-18 14:38:12 +02:00
.gitignore Added actix-web example (#38) 2020-05-18 20:57:37 +02:00
CONTRIBUTING.md Reorganized symbol exports for 0.1 release (#45) 2020-05-20 11:43:47 +02:00
Cargo.toml Release 0.1 (#46) 2020-05-20 13:41:40 +02:00
LICENSE License nit 2020-02-18 14:20:25 +01:00
README.md Release 0.1 (#46) 2020-05-20 13:41:40 +02:00

README.md

CloudEvents SDK Rust Crates badge Docs badge

This project implements the CloudEvents Spec for Rust.

Note: This projecets is WIP under active development, hence all APIs are considered unstable.

Spec support

v0.3 v1.0
CloudEvents Core ✔️ ✔️
AMQP Protocol Binding
AVRO Event Format
HTTP Protocol Binding ✔️ ✔️
JSON Event Format ✔️ ✔️
Kafka Protocol Binding
MQTT Protocol Binding
NATS Protocol Binding
Web hook

Crates

  • cloudevents-sdk: Provides Event data structure, JSON Event format implementation. This module is tested to work with GNU libc, WASM and musl toolchains.
  • cloudevents-sdk-actix-web: Integration with Actix Web.
  • cloudevents-sdk-reqwest: Integration with reqwest.

Get Started

To get started, add the dependency to Cargo.toml:

cloudevents-sdk = "0.1.0"

Now you can start creating events:

use cloudevents::EventBuilder;
use url::Url;

let event = EventBuilder::v03()
    .id("aaa")
    .source(Url::parse("http://localhost").unwrap())
    .ty("example.demo")
    .build();

Checkout the examples using our integrations with actix-web and reqwest to learn how to send and receive events:

Development & Contributing

If you're interested in contributing to sdk-rust, look at Contributing documentation

Community