From e335e7a8186836bca9808d6ac64a58168a0359a2 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 24 Nov 2015 22:21:15 +0100 Subject: [PATCH] Silly test function. --- Cargo.toml | 6 +++++- src/lib.rs | 15 +++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 81fc8779a..ba558dc96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,12 @@ [package] +description = "Ethcore library" +homepage = "http://ethcore.io" +license = "GPL-3.0" name = "ethcore" version = "0.1.0" authors = ["Ethcore "] [dependencies] +log = "0.3" +env_logger = "0.3" ethcore-util = "0.1.0" - diff --git a/src/lib.rs b/src/lib.rs index a93251b65..1354e7aed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,14 @@ -#[test] -fn it_works() { +#[macro_use] extern crate log; + +/// Silly function to return 69. +/// +/// # Example +/// +/// ``` +/// assert_eq!(ethcore::sixtynine(), 69); +/// ``` +pub fn sixtynine() -> i32 { + debug!("Hello world!"); + 69 } +