Skip to content

Commit e78a251

Browse files
committed
Remove dependency on num_bigint
1 parent 3be6fee commit e78a251

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

wasm/Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wasm/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ rustpython_vm = {path = "../vm"}
1515
cfg-if = "0.1.2"
1616
wasm-bindgen = "0.2"
1717
js-sys = "0.3"
18-
num-bigint = "0.2.1"
1918

2019
[dependencies.web-sys]
2120
version = "0.3"

wasm/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
mod wasm_builtins;
22

33
extern crate js_sys;
4-
extern crate num_bigint;
54
extern crate rustpython_vm;
65
extern crate wasm_bindgen;
76
extern crate web_sys;
87

9-
use num_bigint::BigInt;
108
use rustpython_vm::compile;
11-
use rustpython_vm::pyobject::{self, IdProtocol, PyObjectRef, PyResult};
9+
use rustpython_vm::pyobject::{self, PyObjectRef, PyResult};
1210
use rustpython_vm::VirtualMachine;
1311
use wasm_bindgen::prelude::*;
1412
use web_sys::console;
@@ -57,7 +55,8 @@ pub fn eval_py(source: &str) -> Result<JsValue, JsValue> {
5755
vm.ctx.set_attr(
5856
&vm.builtins,
5957
"print",
60-
vm.context().new_rustfunc(wasm_builtins::builtin_print_console),
58+
vm.context()
59+
.new_rustfunc(wasm_builtins::builtin_print_console),
6160
);
6261

6362
eval(&mut vm, source)

0 commit comments

Comments
 (0)