Skip to content

Commit 75f9ea2

Browse files
committed
Update rand deps, replace statrs with puruspe
1 parent 76306b2 commit 75f9ea2

File tree

4 files changed

+38
-33
lines changed

4 files changed

+38
-33
lines changed

Cargo.lock

Lines changed: 31 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ hexf-parse = "0.1.0"
1818
cfg-if = "0.1"
1919
once_cell = "1.4.1"
2020
siphasher = "0.3"
21-
rand = "0.7.3"
21+
rand = "0.8"
2222
derive_more = "0.99.9"
2323
volatile = "0.3"

vm/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ num-traits = "0.2.8"
3434
num-integer = "0.1.41"
3535
num-rational = "0.3"
3636
num-iter = "0.1.39"
37-
rand = { version = "0.7", features = ["wasm-bindgen"] }
38-
rand_core = "0.5"
39-
getrandom = { version = "0.1", features = ["wasm-bindgen"] }
40-
mt19937 = "1.0"
37+
rand = "0.8"
38+
rand_core = "0.6"
39+
getrandom = { version = "0.2", features = ["js"] }
40+
mt19937 = "2.0"
4141
log = "0.4"
4242
rustpython-derive = { path = "../derive", version = "0.1.2" }
4343
rustpython-parser = { path = "../parser", optional = true, version = "0.1.2" }
@@ -49,7 +49,7 @@ serde = { version = "1.0.66", features = ["derive"] }
4949
serde_json = "1.0"
5050
regex = "1"
5151
rustc_version_runtime = "0.1.*"
52-
statrs = "0.12.0"
52+
puruspe = "0.1"
5353
caseless = "0.2.1"
5454
chrono = { version = "0.4", features = ["wasmbind"] }
5555
lexical-core = "0.7"

vm/src/stdlib/math.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
use num_bigint::BigInt;
77
use num_traits::{One, Signed, Zero};
8-
use statrs::function::erf::{erf, erfc};
9-
use statrs::function::gamma::{gamma, ln_gamma};
8+
use puruspe::{erf, erfc, gamma, ln_gamma};
109

1110
use crate::builtins::float::{self, IntoPyFloat, PyFloatRef};
1211
use crate::builtins::int::{self, PyInt, PyIntRef};

0 commit comments

Comments
 (0)