From db606609af91987f62e9496adc65ca74c02352d5 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 3 Jul 2018 13:49:07 +0300 Subject: Add basic usage print with color --- Cargo.lock | 19 +++++++++++++++++++ Cargo.toml | 1 + src/main.rs | 7 ++++++- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 314ef97..e0c041e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,4 +1,23 @@ +[[package]] +name = "colored" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "lazy_static" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "rustcast" version = "0.1.0" +dependencies = [ + "colored 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", +] +[metadata] +"checksum colored 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b0aa3473e85a3161b59845d6096b289bb577874cafeaf75ea1b1beaa6572c7fc" +"checksum lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73" diff --git a/Cargo.toml b/Cargo.toml index c5502a1..e8374df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,4 @@ version = "0.1.0" authors = ["Yuval Adam <_@yuv.al>"] [dependencies] +colored = "1.6" diff --git a/src/main.rs b/src/main.rs index e7a11a9..8907d4c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,8 @@ +extern crate colored; + +use colored::*; + fn main() { - println!("Hello, world!"); + println!("\n{}", "Rustcast v0.1.0".color("blue").bold()); + println!("\n usage: rustcast \n"); } -- cgit v1.3.1