Skip to content

Commit 3bc7141

Browse files
authored
Merge pull request RustPython#2029 from RustPython/coolreader18/update-deps
Update dependencies
2 parents 1fd8787 + 2bc2d17 commit 3bc7141

11 files changed

Lines changed: 114 additions & 356 deletions

File tree

Cargo.lock

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

bytecode/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ license = "MIT"
1111
[dependencies]
1212
bincode = "1.1"
1313
bitflags = "1.1"
14-
lz4-compress = "0.1.1"
14+
lz4-compression = "0.7"
1515
num-bigint = { version = "0.3", features = ["serde"] }
1616
num-complex = { version = "0.2", features = ["serde"] }
1717
serde = { version = "1.0", features = ["derive"] }
18-
itertools = "0.8"
18+
itertools = "0.9"

bytecode/src/bytecode.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,14 +409,15 @@ impl CodeObject {
409409

410410
/// Load a code object from bytes
411411
pub fn from_bytes(data: &[u8]) -> Result<Self, Box<dyn std::error::Error>> {
412-
let data = lz4_compress::decompress(data)?;
412+
let data = lz4_compression::decompress::decompress(data)
413+
.map_err(|e| format!("lz4 error: {:?}", e))?;
413414
bincode::deserialize::<Self>(&data).map_err(|e| e.into())
414415
}
415416

416417
/// Serialize this bytecode to bytes.
417418
pub fn to_bytes(&self) -> Vec<u8> {
418419
let data = bincode::serialize(&self).expect("Code object must be serializable");
419-
lz4_compress::compress(&data)
420+
lz4_compression::compress::compress(&data)
420421
}
421422

422423
pub fn get_constants(&self) -> impl Iterator<Item = &Constant> {

common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ threading = ["parking_lot"]
1111
parking_lot = { version = "0.11.0", optional = true }
1212
num-traits = "0.2"
1313
num-bigint = "0.3"
14-
lexical = "4"
14+
lexical-core = "0.7"
1515
hexf-parse = "0.1.0"
1616
cfg-if = "0.1"
1717

common/src/float_ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn parse_str(literal: &str) -> Option<f64> {
7272
last_tok = Some(c);
7373
}
7474

75-
if let Ok(f) = lexical::parse(buf.as_str()) {
75+
if let Ok(f) = lexical_core::parse(buf.as_bytes()) {
7676
Some(f)
7777
} else {
7878
None

compiler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2018"
99

1010
[dependencies]
1111
indexmap = "1.0"
12-
itertools = "0.8.0"
12+
itertools = "0.9"
1313
rustpython-bytecode = { path = "../bytecode", version = "0.1.1" }
1414
rustpython-parser = { path = "../parser", version = "0.1.1" }
1515
num-complex = { version = "0.2", features = ["serde"] }

parser/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ license = "MIT"
99
edition = "2018"
1010

1111
[build-dependencies]
12-
lalrpop="0.17"
12+
lalrpop="0.19"
1313

1414
[dependencies]
15-
lalrpop-util = "0.17"
15+
lalrpop-util = "0.19"
1616
log = "0.4.1"
1717
num-bigint = "0.3"
1818
num-traits = "0.2"

vm/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ statrs = "0.12.0"
5252
caseless = "0.2.1"
5353
chrono = { version = "0.4", features = ["wasmbind"] }
5454
once_cell = "1.3.1"
55-
lexical = "4"
56-
itertools = "0.8"
55+
lexical-core = "0.7"
56+
itertools = "0.9"
5757
hex = "0.4.0"
5858
hexf-parse = "0.1.0"
5959
indexmap = "1.0.2"
@@ -92,7 +92,8 @@ unic-ucd-age = "0.9"
9292
unic-ucd-ident = "0.9"
9393

9494
flame = { version = "0.2", optional = true }
95-
flamer = { version = "0.3", optional = true }
95+
flamer = { version = "0.4", optional = true }
96+
9697
rustpython-common = { path = "../common" }
9798

9899
[target.'cfg(unix)'.dependencies]
@@ -134,4 +135,4 @@ features = [
134135
wasm-bindgen = "0.2"
135136

136137
[build-dependencies]
137-
itertools = "0.8"
138+
itertools = "0.9"

vm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ extern crate flamer;
2020

2121
#[macro_use]
2222
extern crate bitflags;
23-
extern crate lexical;
2423
#[macro_use]
2524
extern crate log;
2625
#[macro_use]

vm/src/obj/objfloat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ fn to_float(vm: &VirtualMachine, obj: &PyObjectRef) -> PyResult<f64> {
513513
vm.new_value_error(format!("could not convert string to float: '{}'", s))
514514
})?
515515
} else if let Some(bytes) = obj.payload_if_subclass::<PyBytes>(vm) {
516-
lexical::parse(bytes.get_value()).map_err(|_| {
516+
lexical_core::parse(bytes.get_value()).map_err(|_| {
517517
vm.new_value_error(format!(
518518
"could not convert string to float: '{}'",
519519
bytes.repr()

0 commit comments

Comments
 (0)