Version -> 0.2.0. Change full num dependency to the lighter num_traits.

This commit is contained in:
kennytm 2016-06-05 01:28:15 +08:00
parent d2804e5b53
commit a119c17336
3 changed files with 9 additions and 9 deletions

View file

@ -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 <kennytm@gmail.com>"]
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 = []

View file

@ -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<N: PrimInt>(from: N, to: N) -> Range<N> {
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

View file

@ -22,7 +22,7 @@
#[cfg(feature="bench")]
extern crate test;
extern crate num;
extern crate num_traits;
use std::ops::Index;