build: update version (v0.0.42)

This commit is contained in:
Shunsuke Shibayama 2023-09-03 03:01:56 +09:00
parent 27ee8922cf
commit ca262b4046
3 changed files with 57 additions and 56 deletions

89
Cargo.lock generated
View File

@ -155,8 +155,9 @@ checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
[[package]] [[package]]
name = "els" name = "els"
version = "0.1.31" version = "0.1.32-nightly.0"
source = "git+https://github.com/erg-lang/erg?branch=main#0c433235088cea94d5e2e57761735f064db2b64e" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3307c99c6899e4e15cd70ae441155dcf29518c89851ee0607bd7dfa31a7007af"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_compiler", "erg_compiler",
@ -179,8 +180,9 @@ dependencies = [
[[package]] [[package]]
name = "erg_common" name = "erg_common"
version = "0.6.19" version = "0.6.20-nightly.0"
source = "git+https://github.com/erg-lang/erg?branch=main#0c433235088cea94d5e2e57761735f064db2b64e" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d1c1dc0d6ec5a9d4bf8c937ba5512e56e20bfd3b7313f0fcea5678abbefb4cb3"
dependencies = [ dependencies = [
"backtrace-on-stack-overflow", "backtrace-on-stack-overflow",
"parking_lot", "parking_lot",
@ -189,8 +191,9 @@ dependencies = [
[[package]] [[package]]
name = "erg_compiler" name = "erg_compiler"
version = "0.6.19" version = "0.6.20-nightly.0"
source = "git+https://github.com/erg-lang/erg?branch=main#0c433235088cea94d5e2e57761735f064db2b64e" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2cbb4b6cc66405d59b575203f70b54faed5d9390eecc1b339f46ce6c1820c702"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_parser", "erg_parser",
@ -198,8 +201,9 @@ dependencies = [
[[package]] [[package]]
name = "erg_parser" name = "erg_parser"
version = "0.6.19" version = "0.6.20-nightly.0"
source = "git+https://github.com/erg-lang/erg?branch=main#0c433235088cea94d5e2e57761735f064db2b64e" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "84a6408c0cd62d1fdfb12fe223749c9cb952f77104cd27e4425e25f863858970"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"unicode-xid", "unicode-xid",
@ -399,9 +403,9 @@ dependencies = [
[[package]] [[package]]
name = "memchr" name = "memchr"
version = "2.5.0" version = "2.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" checksum = "5486aed0026218e61b8a01d5fbd5a0a134649abb71a0e53b7bc088529dced86e"
[[package]] [[package]]
name = "memoffset" name = "memoffset"
@ -575,7 +579,7 @@ dependencies = [
[[package]] [[package]]
name = "py2erg" name = "py2erg"
version = "0.0.33" version = "0.0.42"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_compiler", "erg_compiler",
@ -585,7 +589,7 @@ dependencies = [
[[package]] [[package]]
name = "pylyzer" name = "pylyzer"
version = "0.0.33" version = "0.0.42"
dependencies = [ dependencies = [
"els", "els",
"erg_common", "erg_common",
@ -669,21 +673,6 @@ dependencies = [
"bitflags", "bitflags",
] ]
[[package]]
name = "ruff_source_location"
version = "0.0.0"
source = "git+https://github.com/RustPython/Parser#b07966695a28945c12f84c955312d9fdbecdd48e"
dependencies = [
"memchr",
"once_cell",
"ruff_text_size",
]
[[package]]
name = "ruff_text_size"
version = "0.0.0"
source = "git+https://github.com/RustPython/Parser#b07966695a28945c12f84c955312d9fdbecdd48e"
[[package]] [[package]]
name = "rustc-demangle" name = "rustc-demangle"
version = "0.1.23" version = "0.1.23"
@ -707,8 +696,9 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-ast" name = "rustpython-ast"
version = "0.2.0" version = "0.3.0"
source = "git+https://github.com/RustPython/Parser#b07966695a28945c12f84c955312d9fdbecdd48e" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcf9438da3660e6b88bd659fdc0cd13bcff4b85c584026a48b800c75bf0f8d00"
dependencies = [ dependencies = [
"is-macro", "is-macro",
"malachite-bigint", "malachite-bigint",
@ -718,8 +708,9 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-parser" name = "rustpython-parser"
version = "0.2.0" version = "0.3.0"
source = "git+https://github.com/RustPython/Parser#b07966695a28945c12f84c955312d9fdbecdd48e" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9db993974ff12f33c5be8a801741463691502f85ead5c503277937c4077bd92a"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"is-macro", "is-macro",
@ -741,13 +732,23 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-parser-core" name = "rustpython-parser-core"
version = "0.2.0" version = "0.3.0"
source = "git+https://github.com/RustPython/Parser#b07966695a28945c12f84c955312d9fdbecdd48e" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e9d560c6dd4dc774d4bbad48c770e074c178c4ed5f6fd0521fcdb639af21bdd"
dependencies = [ dependencies = [
"is-macro", "is-macro",
"memchr", "memchr",
"ruff_source_location", "rustpython-parser-vendored",
"ruff_text_size", ]
[[package]]
name = "rustpython-parser-vendored"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17ae3062d7fe5fe38073f3a1c7145ed9a04e15f6e4a596d642c7db2d5cd2b51b"
dependencies = [
"memchr",
"once_cell",
] ]
[[package]] [[package]]
@ -770,18 +771,18 @@ checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918"
[[package]] [[package]]
name = "serde" name = "serde"
version = "1.0.186" version = "1.0.188"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f5db24220c009de9bd45e69fb2938f4b6d2df856aa9304ce377b3180f83b7c1" checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e"
dependencies = [ dependencies = [
"serde_derive", "serde_derive",
] ]
[[package]] [[package]]
name = "serde_derive" name = "serde_derive"
version = "1.0.186" version = "1.0.188"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ad697f7e0b65af4983a4ce8f56ed5b357e8d3c36651bf6a7e13639c17b8e670" checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -984,16 +985,14 @@ checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c"
[[package]] [[package]]
name = "unicode_names2" name = "unicode_names2"
version = "0.6.0" version = "0.6.0"
source = "git+https://github.com/youknowone/unicode_names2.git?rev=4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde#4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [ checksum = "446c96c6dd42604779487f0a981060717156648c1706aa1f464677f03c6cc059"
"phf",
]
[[package]] [[package]]
name = "url" name = "url"
version = "2.4.0" version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb" checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5"
dependencies = [ dependencies = [
"form_urlencoded", "form_urlencoded",
"idna", "idna",

View File

@ -15,21 +15,23 @@ members = [
] ]
[workspace.package] [workspace.package]
version = "0.0.33" version = "0.0.42"
authors = ["Shunsuke Shibayama <sbym1346@gmail.com>"] authors = ["Shunsuke Shibayama <sbym1346@gmail.com>"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
edition = "2021" edition = "2021"
repository = "https://github.com/mtshiba/pylyzer" repository = "https://github.com/mtshiba/pylyzer"
[workspace.dependencies] [workspace.dependencies]
# erg_common = { version = "0.6.15", features = ["py_compat", "els"] } erg_common = { version = "0.6.20-nightly.0", features = ["py_compat", "els"] }
# erg_compiler = { version = "0.6.15", features = ["py_compat", "els"] } erg_compiler = { version = "0.6.20-nightly.0", features = ["py_compat", "els"] }
# els = { version = "0.1.27", features = ["py_compat"] } els = { version = "0.1.32-nightly.0", features = ["py_compat"] }
rustpython-parser = { git = "https://github.com/RustPython/Parser", version = "0.2.0", features = ["all-nodes-with-ranges", "location"] } rustpython-parser = { version = "0.3.0", features = ["all-nodes-with-ranges", "location"] }
rustpython-ast = { git = "https://github.com/RustPython/Parser", version = "0.2.0", features = ["all-nodes-with-ranges", "location"] } rustpython-ast = { version = "0.3.0", features = ["all-nodes-with-ranges", "location"] }
erg_compiler = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat", "els"] } # rustpython-parser = { git = "https://github.com/RustPython/Parser", version = "0.3.0", features = ["all-nodes-with-ranges", "location"] }
erg_common = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat", "els"] } # rustpython-ast = { git = "https://github.com/RustPython/Parser", version = "0.3.0", features = ["all-nodes-with-ranges", "location"] }
els = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat"] } # erg_compiler = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat", "els"] }
# erg_common = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat", "els"] }
# els = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat"] }
# erg_compiler = { path = "../erg/crates/erg_compiler", features = ["py_compat", "els"] } # erg_compiler = { path = "../erg/crates/erg_compiler", features = ["py_compat", "els"] }
# erg_common = { path = "../erg/crates/erg_common", features = ["py_compat", "els"] } # erg_common = { path = "../erg/crates/erg_common", features = ["py_compat", "els"] }
# els = { path = "../erg/crates/els", features = ["py_compat"] } # els = { path = "../erg/crates/els", features = ["py_compat"] }
@ -47,7 +49,7 @@ erg_common = { workspace = true }
els = { workspace = true } els = { workspace = true }
rustpython-parser = { workspace = true } rustpython-parser = { workspace = true }
rustpython-ast = { workspace = true } rustpython-ast = { workspace = true }
py2erg = { version = "0.0.33", path = "./crates/py2erg" } py2erg = { version = "0.0.42", path = "./crates/py2erg" }
[lib] [lib]
path = "src/lib.rs" path = "src/lib.rs"

View File

@ -1184,7 +1184,7 @@ impl ASTConverter {
let kvs = dict let kvs = dict
.keys .keys
.into_iter() .into_iter()
.zip(dict.values.into_iter()) .zip(dict.values)
.map(|(k, v)| { .map(|(k, v)| {
KeyValue::new( KeyValue::new(
k.map(|k| self.convert_expr(k)) k.map(|k| self.convert_expr(k))