From 8d3fe72e9ad0fb3c877ec6398d097666e19c9ad1 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Wed, 31 Jul 2024 15:19:57 +0100 Subject: [PATCH] chore(deps): [#979] add new cargo dep: serde_with We will add a new enpoint to add tracker keys where some JSON values can be null: ```console curl -X POST http://localhost:1212/api/v1/keys?token=MyAccessToken \ -H "Content-Type: application/json" \ -d '{ "key": null, "seconds_valid": null }' ``` We need to set those values to `None` in the Rsut strucut. --- Cargo.lock | 1 + Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index e4f7a938..234f291c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3886,6 +3886,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_repr", + "serde_with", "thiserror", "tokio", "torrust-tracker-clock", diff --git a/Cargo.toml b/Cargo.toml index 5e440151..4184f2ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,6 +66,7 @@ serde_bencode = "0" serde_bytes = "0" serde_json = { version = "1", features = ["preserve_order"] } serde_repr = "0" +serde_with = { version = "3.9.0", features = ["json"] } thiserror = "1" tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] } torrust-tracker-clock = { version = "3.0.0-alpha.12-develop", path = "packages/clock" }