From c65b9e00d5d37722e7e4887e7165e19931048c83 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 20 Nov 2017 20:53:00 +0100 Subject: Use route decorators to produce different output formats. This seems to be the more proper way of doing it. Also makes it much clearer which routes exists, and what formats they accept. Both in the code and in the status output. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 7202391..762ce89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,8 @@ bart_derive = "0.1.4" serde = "1.0" serde_derive = "1.0" serde_json = "1.0" + +[dependencies.rocket_contrib] +version = "0.3.3" +default-features = false +features = ["json"] -- cgit v1.2.3