From 0e17d6acd7c075ecd7195eaa65825dfa00e76e97 Mon Sep 17 00:00:00 2001 From: Fayeed Pawaskar Date: Mon, 24 Jul 2023 10:12:22 +0530 Subject: [PATCH] remove rug completely --- Cargo.lock | 24 ------------------------ Cargo.toml | 2 -- src/machine/system_calls.rs | 5 ----- src/parser/mod.rs | 6 ------ 4 files changed, 37 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a5faf337..ec3941ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,12 +43,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "az" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b7e4c2464d97fe331d41de9d5db0def0a96f4d823b8b32a2efd503578988973" - [[package]] name = "base64" version = "0.12.3" @@ -727,14 +721,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "gmp-mpfr-sys" -version = "1.5.3" -dependencies = [ - "libc", - "windows-sys 0.42.0", -] - [[package]] name = "h2" version = "0.3.19" @@ -1771,15 +1757,6 @@ dependencies = [ "xmlparser", ] -[[package]] -name = "rug" -version = "1.19.2" -dependencies = [ - "az", - "gmp-mpfr-sys", - "libc", -] - [[package]] name = "rustix" version = "0.37.20" @@ -1899,7 +1876,6 @@ dependencies = [ "ring", "ripemd160", "roxmltree", - "rug", "rustyline", "ryu", "select", diff --git a/Cargo.toml b/Cargo.toml index 8a50c342..76b0aa62 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,6 @@ build = "build/main.rs" rust-version = "1.63" [features] -default = ["rug"] [build-dependencies] indexmap = "1.0.2" @@ -45,7 +44,6 @@ ctrlc = "3.2.2" ordered-float = "2.6.0" phf = { version = "0.9", features = ["macros"] } ref_thread_local = "0.0.0" -rug = { path = "../rug", optional = true } rustyline = "9.0.0" ring = "0.16.13" ripemd160 = "0.8.0" diff --git a/src/machine/system_calls.rs b/src/machine/system_calls.rs index 8f2523a7..7ee4c311 100644 --- a/src/machine/system_calls.rs +++ b/src/machine/system_calls.rs @@ -26,7 +26,6 @@ use crate::machine::stack::*; use crate::machine::streams::*; use crate::parser::char_reader::*; use crate::parser::dashu::Integer; -use crate::parser::rug::rand::RandState; use crate::read::*; use crate::types::*; use rand::{Rng, SeedableRng}; @@ -93,10 +92,6 @@ use hyper_tls::HttpsConnector; use tokio::sync::Mutex; use tokio::sync::mpsc::channel; -ref_thread_local! { - pub(crate) static managed RANDOM_STATE: RandState<'static> = RandState::new(); -} - pub(crate) fn get_key() -> KeyEvent { let key; enable_raw_mode().expect("failed to enable raw mode"); diff --git a/src/parser/mod.rs b/src/parser/mod.rs index e7d0cec0..ef6a8e0a 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -1,9 +1,3 @@ -#[cfg(feature = "num-rug-adapter")] -pub use num_rug_adapter as rug; - -#[cfg(feature = "rug")] -pub use rug; - pub use dashu; // #[macro_use] -- 2.54.0