Add API calls and their infrastructure

- Add dependencies
- Add authentification (email, password)
- Add token request
- Fetch /self
- Fetch /conversations
- Add infrastructure for above
- Add auth example
This commit is contained in:
CramMK
2020-01-09 15:59:01 +01:00
parent 3c21cf6f4a
commit 3ee205e6bc
12 changed files with 355 additions and 106 deletions

View File

@@ -10,15 +10,18 @@ bindgen = "0.50"
protoc-rust = "2.8.1"
[lib]
crate-type = ["dylib"]
crate-type = ["rlib","dylib"]
[dependencies]
diesel = { version = "1.4.2", features=["sqlite"] }
cryptobox = { git = "https://github.com/wireapp/cryptobox.git", branch = "develop" }
proteus = { git = "https://github.com/wireapp/proteus", branch = "develop" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
protobuf = "2.8.1"
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "0.7", features = ["serde", "v4"] }
base64 = "0.10.1"
tungstenite = "0.9.2"
hyper = "0.13.1"
hyper-tls = "0.4.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "0.2.6", features = ["full"] }