Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
euclio committed Jul 20, 2018
1 parent 1129cb7 commit 0790855
Show file tree
Hide file tree
Showing 50 changed files with 923 additions and 1,000 deletions.
1,797 changes: 863 additions & 934 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ authors = [

[dependencies]
clap = "2"
difference = "1"
env_logger = "0.4"
log = "0.3"
difference = "2"
env_logger = "0.5"
log = "0.4"
meta = { path = "meta" }
reqwest = "0.8"
serde = "1"
serde_json = "1"
structopt = "0.2"
term = "0.4"
term = "0.5"

[dev-dependencies]
lazy_static = "1"
Expand Down
6 changes: 3 additions & 3 deletions meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name = "meta"
version = "0.1.0"

[dependencies]
cargo_metadata = "0.4"
cargo_metadata = "0.6"
failure = "0.1"
lazy_static = "0.2.1"
lazy_static = "1"
pathdiff = "0.1"
percent-encoding = "1"
rand = "0.5"
regex = "0.2"
regex = "1"
reqwest = "0.8"
serde = "1"
serde_derive = "1"
Expand Down
6 changes: 3 additions & 3 deletions meta/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ where

for member in &metadata.workspace_members {
// Skip if we encounter known non-task crates.
if member.name == "rust-rosetta" || member.name == "meta" {
if member.name() == "rust-rosetta" || member.name() == "meta" {
continue;
}

let package = packages.iter().find(|p| p.name == member.name).unwrap();
let package = packages.iter().find(|p| p.name == member.name()).unwrap();

// If the package has a proc-macro or dylib target, it's probably just a dependency of
// another task. Skip it.
Expand Down Expand Up @@ -81,7 +81,7 @@ where
};

tasks.push(LocalTask {
package_name: member.name.clone(),
package_name: member.name().to_owned(),
manifest_path: manifest_path.to_owned(),
source: find_sources(manifest_path.parent().unwrap())?,
url: rosetta_url,
Expand Down
2 changes: 1 addition & 1 deletion tasks/100-doors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/100_doors"

[dependencies]
num = "0.1.32"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/24-game/solve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/24_game/Solve"

[dependencies]
num = "0.1"
num = "0.2"
permutohedron = "0.2"
2 changes: 1 addition & 1 deletion tasks/9-billion-names-of-god-the-integer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/9_billion_names_of_God_the_integer"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/active-object/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Active_object"

[dependencies]
num = "0.1"
num = "0.2"
schedule_recv = "0.1.0"
2 changes: 1 addition & 1 deletion tasks/animation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Animation"

[dependencies]
gtk = { version = "0.3", optional = true }
gtk = { version = "0.4", optional = true }
4 changes: 2 additions & 2 deletions tasks/apply-a-digital-filter/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::cmp::Ordering;

struct IIRFilter<'f>(&'f [f32], &'f [f32]);

impl<'f> IIRFilter<'f> {
Expand Down Expand Up @@ -103,6 +101,8 @@ fn main() {

#[test]
fn test() {
use std::cmp::Ordering;

let a: &[f32] = &[1.00000000, -2.77555756e-16, 3.33333333e-01, -1.85037171e-17];
let b: &[f32] = &[0.16666667, 0.5, 0.5, 0.16666667];

Expand Down
2 changes: 1 addition & 1 deletion tasks/arbitrary-precision-integers-included/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Arbitrary-precision_integers_(included)"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/arithmetic/complex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Arithmetic/Complex"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/arithmetic/rational/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Arithmetic/Rational"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/bernoulli-numbers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Bernoulli_numbers"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/bitcoin/public-point-to-address/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Bitcoin/public_point_to_address"

[dependencies]
hex = "0.2"
hex = "0.3"
rust-crypto = "^0.2"
2 changes: 1 addition & 1 deletion tasks/brownian-tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Brownian_tree"

[dependencies]
image = "0.17"
image = "0.19"
rand = "0.5"
2 changes: 1 addition & 1 deletion tasks/chaos-game/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Chaos_game"

[dependencies]
image = "0.17"
image = "0.19"
rand = "0.5"
5 changes: 1 addition & 4 deletions tasks/chaos-game/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ extern crate image;
extern crate rand;

use std::f32::consts::PI;
use std::fs::File;

use rand::prelude::*;

Expand Down Expand Up @@ -36,7 +35,5 @@ fn main() {
imgbuf.put_pixel(x as u32, y as u32, image::Luma([255]));
}

// Save image
let fout = &mut File::create("fractal.png").unwrap();
image::ImageLuma8(imgbuf).save(fout, image::PNG).unwrap();
image::ImageLuma8(imgbuf).save("fractal.png").unwrap();
}
2 changes: 1 addition & 1 deletion tasks/closest-pair-problem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Closest-pair_problem"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/dot-product/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Dot_product"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/equilibrium-index/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Equilibrium_index"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/evaluate-binomial-coefficients/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Evaluate_binomial_coefficients"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/fast-fourier-transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Fast_Fourier_transform"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/forest-fire/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ url = "http://rosettacode.org/wiki/Forest_fire"

[dependencies]
rand = "0.5"
ansi_term = "0.10"
ansi_term = "0.11"
2 changes: 1 addition & 1 deletion tasks/ftp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/FTP"

[dependencies]
ftp = "2"
ftp = "3"
2 changes: 1 addition & 1 deletion tasks/greatest-common-divisor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Greatest_common_divisor"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/hamming-numbers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Hamming_numbers"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/hello-world/graphical/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Hello_world/Graphical"

[dependencies]
gtk = { version = "0.3", optional = true }
gtk = { version = "0.4", optional = true }
2 changes: 1 addition & 1 deletion tasks/horners-rule-for-polynomial-evaluation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Horner%27s_rule_for_polynomial_evaluation"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/iban/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/IBAN"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/integer-sequence/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Integer_sequence"

[dependencies]
num = "0.1"
num = "0.2"
6 changes: 3 additions & 3 deletions tasks/k-meanspp-clustering/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/K-means%2B%2B_clustering"

[dependencies]
csv = "1.0.0-beta.4"
gnuplot = "0.0.23"
nalgebra = "0.13"
csv = "1"
gnuplot = "0.0.26"
nalgebra = "0.16"
rand = "0.5"
structopt = "0.2"
2 changes: 1 addition & 1 deletion tasks/kahan-summation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Kahan_summation"

[dependencies]
num = "0.1"
num = "0.2"
permutohedron = "0.2"
2 changes: 1 addition & 1 deletion tasks/lychrel-numbers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Lychrel_numbers"

[dependencies]
num = "0.1"
num = "0.2"
4 changes: 2 additions & 2 deletions tasks/mandelbrot-set/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Mandelbrot_set"

[dependencies]
image = "0.17"
num-complex = "0.1"
image = "0.19"
num-complex = "0.2"
5 changes: 1 addition & 4 deletions tasks/mandelbrot-set/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ extern crate image;
extern crate num_complex;

use num_complex::Complex;
use std::fs::File;

fn main() {
let max_iterations = 256u16;
Expand Down Expand Up @@ -37,7 +36,5 @@ fn main() {
*pixel = image::Luma([i as u8]);
}

// Save image
let fout = &mut File::create("fractal.png").unwrap();
image::ImageLuma8(imgbuf).save(fout, image::PNG).unwrap();
image::ImageLuma8(imgbuf).save("fractal.png").unwrap();
}
2 changes: 1 addition & 1 deletion tasks/modular-exponentiation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Modular_exponentiation"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/opengl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/OpenGL"

[dependencies]
glium = "0.17.0"
glium = "0.22.0"
2 changes: 1 addition & 1 deletion tasks/opengl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn main() {
events_loop.run_forever(|event| {
if let glutin::Event::WindowEvent { event, .. } = event {
match event {
glutin::WindowEvent::Closed => return glutin::ControlFlow::Break,
glutin::WindowEvent::CloseRequested => return glutin::ControlFlow::Break,
glutin::WindowEvent::Resized(..) => draw(),
_ => (),
}
Expand Down
2 changes: 1 addition & 1 deletion tasks/range-expansion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Range_expansion"

[dependencies]
regex = "0.2"
regex = "1"
2 changes: 1 addition & 1 deletion tasks/range-extraction/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Range_extraction"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/roots-of-a-function/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Roots_of_a_function"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/roots-of-unity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Roots_of_unity"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/rosetta-code/find-bare-lang-tags/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Rosetta_Code/Find_bare_lang_tags"

[dependencies]
regex = "0.2"
regex = "1"
2 changes: 1 addition & 1 deletion tasks/rosetta-code/fix-code-tags/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Rosetta_Code/Fix_code_tags"

[dependencies]
regex = "0.2"
regex = "1"
2 changes: 1 addition & 1 deletion tasks/rsa-code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/RSA_code"

[dependencies]
num = "0.1"
num = "0.2"
2 changes: 1 addition & 1 deletion tasks/sha-256/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/SHA-256"

[dependencies]
ring = "0.12"
ring = "0.13"
2 changes: 1 addition & 1 deletion tasks/sparkline-in-unicode/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Sparkline_in_unicode"

[dependencies]
regex = { version = "0.2", features = ["pattern"] }
regex = { version = "1", features = ["pattern"] }
2 changes: 1 addition & 1 deletion tasks/walk-a-directory/recursively/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Walk_a_directory/Recursively"

[dependencies]
regex = "0.2"
regex = "1"
2 changes: 1 addition & 1 deletion tasks/window-creation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version = "0.1.0"
url = "http://rosettacode.org/wiki/Window_creation"

[dependencies]
gtk = { version = "0.3", optional = true }
gtk = { version = "0.4", optional = true }

0 comments on commit 0790855

Please sign in to comment.