From a119c173363fc5f556d8d0b4f35059ce48b37fb0 Mon Sep 17 00:00:00 2001 From: kennytm Date: Sun, 5 Jun 2016 01:28:15 +0800 Subject: [PATCH] Version -> 0.2.0. Change full `num` dependency to the lighter `num_traits`. --- Cargo.toml | 8 ++++---- src/canvas.rs | 8 ++++---- src/lib.rs | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a8b40ec..8dc7dd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,18 +2,18 @@ name = "qrcode" description = "QR code encoder in Rust" license = "Apache-2.0" -version = "0.1.8" +version = "0.2.0" authors = ["kennytm "] keywords = ["qrcode"] repository = "https://github.com/kennytm/qrcode-rust" readme = "README.md" -documentation = "http://kennytm.github.io/qrcode-rust/qrcode-rust/qrcode/" +documentation = "http://kennytm.github.io/qrcode-rust/" exclude = [ - "scripts/*", ".travis.yml", ".gitignore" + ".travis.yml", ".gitignore" ] [dependencies] -num = "0.1" +num-traits = "0.1.32" [features] bench = [] diff --git a/src/canvas.rs b/src/canvas.rs index 4f16934..5180863 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -11,13 +11,13 @@ use std::iter::repeat; use std::cmp::max; -use num::traits::PrimInt; use std::ops::Range; +use num_traits::PrimInt; + use types::{Version, EcLevel}; -// TODO remove this after it is decided whether we want `p ... q` or -// `(p .. q).inclusive()` +// TODO remove this after `p ... q` becomes stable. See rust-lang/rust#28237. fn range_inclusive(from: N, to: N) -> Range { from .. (to + N::one()) } @@ -1884,7 +1884,7 @@ impl Canvas { //}}} //------------------------------------------------------------------------------ -// Copyright 2014 Kenny Chan +// Copyright 2014-2016 kennytm // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of diff --git a/src/lib.rs b/src/lib.rs index 843dd67..1fdabae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ #[cfg(feature="bench")] extern crate test; -extern crate num; +extern crate num_traits; use std::ops::Index;