From 58c3813cf76cc09acf34fa63e96f3da6f9f90459 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 5 Oct 2024 23:37:48 +0200 Subject: [PATCH] Add rand crate --- Cargo.lock | 24 +++++++++++++++++++++++- Cargo.toml | 1 + 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index ed460e4..7707972 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "ab_glyph" @@ -177,6 +177,7 @@ name = "ant_sim" version = "0.1.0" dependencies = [ "bevy", + "rand", ] [[package]] @@ -3002,6 +3003,12 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + [[package]] name = "presser" version = "0.3.1" @@ -3062,6 +3069,18 @@ version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", "rand_core", ] @@ -3070,6 +3089,9 @@ name = "rand_core" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] [[package]] name = "range-alloc" diff --git a/Cargo.toml b/Cargo.toml index b055ff2..263fb28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ edition = "2021" [dependencies] bevy = { version = "0.14.2", features = ["wayland", "dynamic_linking"] } +rand = "0.8.5" # Enable a small amount of optimization in the dev profile. [profile.dev]