Simple pubsub wrapper for rust