gcp-pubsub
A crate that acts as a HTTP client to publish and read messages from Google Cloud Platform's PubSub.
Usage
Create a client
Authentication is provided by rust-goauth, which expects a path to the file containing your Google Cloud service account JSON key.
let google_credentials = var.unwrap;
let mut client = new;
Create a topic
let topic = client.create_topic.await;
Publish a message
let result: = topic.publish.await;
Read messages
let subscription = topic.create_subscription.await.unwrap;
let messages : = subscription.pull.await;