From c364421ff928abab3b15514ef23648445c7627ea Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 21 Feb 2021 16:06:25 +0000 Subject: [PATCH] add num dependency (want this for NumCast) Signed-off-by: Ian Jackson --- Cargo.lock.example | 49 ++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 1 + 2 files changed, 50 insertions(+) diff --git a/Cargo.lock.example b/Cargo.lock.example index 4bdb2a44..5e816af8 100644 --- a/Cargo.lock.example +++ b/Cargo.lock.example @@ -1479,6 +1479,31 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "num" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b7a8e9be5e039e2ff869df49155f1c06bd01ade2117ec783e56ab0932b67a8f" +dependencies = [ + "num-bigint", + "num-complex", + "num-integer", + "num-iter", + "num-rational", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e9a41747ae4633fce5adffb4d2e81ffc5e89593cb19917f8fb2cc5ff76507bf" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + [[package]] name = "num-complex" version = "0.3.1" @@ -1509,6 +1534,29 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-iter" +version = "0.1.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12ac428b1cb17fce6f731001d307d351ec70a6d202fc2e60f7d4c5e42d8f4f07" +dependencies = [ + "autocfg", + "num-bigint", + "num-integer", + "num-traits", +] + [[package]] name = "num-traits" version = "0.2.14" @@ -1618,6 +1666,7 @@ dependencies = [ "libc", "log 0.4.14", "nix", + "num", "num-derive", "num-traits", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index 5fe3f6a2..a01c6cb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,6 +42,7 @@ lazy_static = "1" libc = "0.2" log = "0.4" nix = "0.19" +num = "0.3" num-derive = "0.3" once_cell = "1" ordered-float = "2" -- 2.30.2