crosis 0.0.1

The unofficial Crosis API for [@replit's](https://repl.it) container protocol implemented in Rust.
Documentation
***There will be better docs and readmes in the future!***

# rust-crosis

The unofficial Crosis API for [@replit's](https://repl.it) container protocol implemented in Rust.



Crosis is an API that sits on-top of [Replit](https://repl.it)s container  protocol to help with client/channel management and sending/receiving data.

The Crosis API uses [Replit](https://repl.it)s container protocol to interface with said containers, the Protocol module is where you'll find the interface. The Crosis API acts as a layer on-top of the protocol, providing a Client which manages sending/receiving data and funnelling it from/to the relevant Channel.



## Example

```rust
// get get_token and client from crosis

use crosis::{ get_token, Client };



// get the one-time token using the get_token helper function

let token = get_token("<repl_id>", "<api_key>");



// create a client

let client = Client::new(token.as_str());



// do stuff with client
```



## Notes

If you want to use the Protocol by itself - without the higher-level Crosis API - you can use `default-features = false` in `Cargo.toml`.

This implementation uses [prost](https://crates.io/crates/prost) for encoding and decoding protobuf data.



[Learn More](http://protodoc.turbio.repl.co/protov2)