Add serde

This commit is contained in:
Mylloon 2022-01-05 01:23:57 +01:00
parent bbdade1358
commit 1728ba1303
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 3 additions and 0 deletions

1
Cargo.lock generated
View file

@ -568,6 +568,7 @@ dependencies = [
"dotenv",
"futures",
"mattermost_api",
"serde",
"serde_json",
"serenity",
"tokio",

View file

@ -11,6 +11,7 @@ dotenv = "0.15.0"
# API Mattermost
mattermost_api = "0.1.0"
serde = "1.0.133"
# Async
tokio = { version = "1", features = ["full"] }

View file

@ -58,6 +58,7 @@ services:
---
### Sources
- [Documentation `mattermost_api`](https://docs.rs/mattermost_api/0.1.0/mattermost_api/) (utilisé pour communiquer avec Mattermost)
- [Documentation `serde`](https://crates.io/crates/serde) (utilisé pour ma structure de salon [j'ai fait comme `mattermost_api`])
- [Documentation `tokio`](https://docs.rs/tokio/1.15.0/tokio/attr.main.html) (utilisé car `mattermost_api` est `async`)
- [Documentation `chrono`](https://rust-lang-nursery.github.io/rust-cookbook/datetime/parse.html) (utilisé pour l'analyse des timestamps)
- [Documentation `serde_json`](https://docs.serde.rs/serde_json/#constructing-json-values) (utilisé pour gérer tout ce qui est `json`)