From 390ec1081fc29832b2ca7fc0f4234280c84105cd Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 23 Apr 2021 17:15:57 +0530 Subject: add png dep --- Cargo.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3234a7f..0f8e5f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,14 +13,16 @@ license = "MIT" [dependencies] byteorder = "1.4.2" -bitvec = "0.21.0" -sdl2 = {version = "0.34", optional = true} +bitvec = "0.21.0" +sdl2 = { version = "0.34", optional = true } +png = { version = "0.16", optional = true } [features] default = [] -viewer = ["sdl2"] +convert = ["png"] +viewer = ["sdl2"] [[bin]] -name = "obiv" -path = "src/bin/viewer.rs" +name = "obiv" +path = "src/bin/viewer.rs" required-features = ["viewer"] -- cgit v1.2.3