From 9055818c0445da36d447f94479877cb16448ee1f Mon Sep 17 00:00:00 2001 From: Lucy Date: Sun, 23 Feb 2025 14:11:38 -0500 Subject: [PATCH 1/2] update dmasm + Cargo.lock --- Cargo.lock | 271 +++++++++++++++++---------------- Cargo.toml | 1 + auxcov/Cargo.toml | 2 +- debug_server/Cargo.toml | 2 +- instruction_hooking/Cargo.toml | 2 +- 5 files changed, 140 insertions(+), 138 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e6a38a7..7cb8a91 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -35,7 +35,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", - "getrandom 0.2.15", + "getrandom", "once_cell", "version_check", "zerocopy", @@ -129,6 +129,34 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" +[[package]] +name = "attribute-derive" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c124f12ade4e670107b132722d0ad1a5c9790bcbc1b265336369ea05626b4498" +dependencies = [ + "attribute-derive-macro", + "proc-macro2", + "quote", + "syn 2.0.91", +] + +[[package]] +name = "attribute-derive-macro" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b217a07446e0fb086f83401a98297e2d81492122f5874db5391bd270a185f88" +dependencies = [ + "collection_literals", + "interpolator", + "proc-macro-error", + "proc-macro-utils", + "proc-macro2", + "quote", + "quote-use", + "syn 2.0.91", +] + [[package]] name = "atty" version = "0.2.14" @@ -256,7 +284,7 @@ dependencies = [ [[package]] name = "builtins-proc-macro" version = "0.0.0" -source = "git+https://github.com/willox/SpacemanDMM?branch=fixes#6e6620cabc9e1cb23e3286eeadb5e679f285a13d" +source = "git+https://github.com/SpaceManiac/SpacemanDMM?tag=suite-1.9#181067efd1e939e9ca83e71460a95a39a4cb3156" dependencies = [ "proc-macro2", "quote", @@ -386,7 +414,7 @@ checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb" dependencies = [ "chrono", "chrono-tz-build", - "phf 0.11.2", + "phf", ] [[package]] @@ -396,7 +424,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1" dependencies = [ "parse-zoneinfo", - "phf 0.11.2", + "phf", "phf_codegen", ] @@ -475,6 +503,12 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" +[[package]] +name = "collection_literals" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "186dce98367766de751c42c4f03970fc60fc012296e706ccbb9d5df9b6c1e271" + [[package]] name = "color_space" version = "0.5.4" @@ -660,6 +694,28 @@ dependencies = [ "powerfmt", ] +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "derive-where" +version = "1.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62d671cc41a825ebabc75757b62d3d168c577f9149b2d49ece1dad1f72119d25" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.91", +] + [[package]] name = "derive_arbitrary" version = "1.4.1" @@ -718,9 +774,9 @@ dependencies = [ [[package]] name = "dmasm" version = "0.1.0" -source = "git+https://github.com/willox/dmasm#636a5ca0a0d107672976d642e4be7e60c7c6f254" +source = "git+https://github.com/willox/dmasm?tag=515-support#a374671978c2383506d9fb27da0c86e41482a595" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.6.0", "dreammaker", "nom", ] @@ -728,17 +784,20 @@ dependencies = [ [[package]] name = "dreammaker" version = "0.1.0" -source = "git+https://github.com/willox/SpacemanDMM?branch=fixes#6e6620cabc9e1cb23e3286eeadb5e679f285a13d" +source = "git+https://github.com/SpaceManiac/SpacemanDMM?tag=suite-1.9#181067efd1e939e9ca83e71460a95a39a4cb3156" dependencies = [ + "ahash", "bitflags 1.3.2", "builtins-proc-macro", "color_space", - "guard", + "derivative", + "get-size", + "get-size-derive", + "indexmap 1.9.3", "interval-tree", - "linked-hash-map", "lodepng", "ordered-float", - "phf 0.8.0", + "phf", "serde", "serde_derive", "termcolor", @@ -893,14 +952,20 @@ dependencies = [ ] [[package]] -name = "getrandom" -version = "0.1.16" +name = "get-size" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b61e2dab7eedce93a83ab3468b919873ff16bac5a3e704011ff836d22b2120" + +[[package]] +name = "get-size-derive" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +checksum = "13a1bcfb855c1f340d5913ab542e36f25a1c56f57de79022928297632435dec2" dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", + "attribute-derive", + "quote", + "syn 2.0.91", ] [[package]] @@ -911,7 +976,7 @@ checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", ] [[package]] @@ -981,12 +1046,6 @@ dependencies = [ "zip", ] -[[package]] -name = "guard" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d7402bc4451b9f3cc9a2467bb2faf3ad01b129ae9f47f9943a24ad7a2064d84" - [[package]] name = "h2" version = "0.4.7" @@ -1417,10 +1476,16 @@ dependencies = [ "winapi", ] +[[package]] +name = "interpolator" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71dd52191aae121e8611f1e8dc3e324dd0dd1dee1e6dd91d10ee07a3cfb4d9d8" + [[package]] name = "interval-tree" version = "0.8.0" -source = "git+https://github.com/willox/SpacemanDMM?branch=fixes#6e6620cabc9e1cb23e3286eeadb5e679f285a13d" +source = "git+https://github.com/SpaceManiac/SpacemanDMM?tag=suite-1.9#181067efd1e939e9ca83e71460a95a39a4cb3156" [[package]] name = "inventory" @@ -1507,11 +1572,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "linked-hash-map" -version = "0.5.2" -source = "git+https://github.com/SpaceManiac/linked-hash-map?branch=get-key-value#7e6de06f9817fbb17a257af3777b0852f46cb894" - [[package]] name = "linux-raw-sys" version = "0.4.14" @@ -1639,7 +1699,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.52.0", ] @@ -1784,9 +1844,9 @@ dependencies = [ [[package]] name = "ordered-float" -version = "2.10.1" +version = "3.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c" +checksum = "f1e1c390732d15f1d48471625cd92d154e66db2c56645e29a9cd26f4699f72dc" dependencies = [ "num-traits", ] @@ -1891,24 +1951,14 @@ dependencies = [ "sha2", ] -[[package]] -name = "phf" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" -dependencies = [ - "phf_macros", - "phf_shared 0.8.0", - "proc-macro-hack", -] - [[package]] name = "phf" version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ - "phf_shared 0.11.2", + "phf_macros", + "phf_shared", ] [[package]] @@ -1917,18 +1967,8 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a" dependencies = [ - "phf_generator 0.11.2", - "phf_shared 0.11.2", -] - -[[package]] -name = "phf_generator" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" -dependencies = [ - "phf_shared 0.8.0", - "rand 0.7.3", + "phf_generator", + "phf_shared", ] [[package]] @@ -1937,31 +1977,21 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" dependencies = [ - "phf_shared 0.11.2", - "rand 0.8.5", + "phf_shared", + "rand", ] [[package]] name = "phf_macros" -version = "0.8.0" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f6fde18ff429ffc8fe78e2bf7f8b7a5a5a6e2a8b58bc5a9ac69198bbda9189c" +checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" dependencies = [ - "phf_generator 0.8.0", - "phf_shared 0.8.0", - "proc-macro-hack", + "phf_generator", + "phf_shared", "proc-macro2", "quote", - "syn 1.0.109", -] - -[[package]] -name = "phf_shared" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" -dependencies = [ - "siphasher", + "syn 2.0.91", ] [[package]] @@ -2031,10 +2061,15 @@ dependencies = [ ] [[package]] -name = "proc-macro-hack" -version = "0.5.20+deprecated" +name = "proc-macro-utils" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" +checksum = "3f59e109e2f795a5070e69578c4dc101068139f74616778025ae1011d4cd41a8" +dependencies = [ + "proc-macro2", + "quote", + "smallvec", +] [[package]] name = "proc-macro2" @@ -2064,38 +2099,37 @@ dependencies = [ ] [[package]] -name = "rand" -version = "0.7.3" +name = "quote-use" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +checksum = "a7b5abe3fe82fdeeb93f44d66a7b444dedf2e4827defb0a8e69c437b2de2ef94" dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", - "rand_pcg", + "quote", + "quote-use-macros", + "syn 2.0.91", ] [[package]] -name = "rand" -version = "0.8.5" +name = "quote-use-macros" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "97ea44c7e20f16017a76a245bb42188517e13d16dcb1aa18044bc406cdc3f4af" dependencies = [ - "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", + "derive-where", + "proc-macro2", + "quote", + "syn 2.0.91", ] [[package]] -name = "rand_chacha" -version = "0.2.2" +name = "rand" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "libc", + "rand_chacha", + "rand_core", ] [[package]] @@ -2105,16 +2139,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", + "rand_core", ] [[package]] @@ -2123,25 +2148,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.15", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", -] - -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", + "getrandom", ] [[package]] @@ -2287,7 +2294,7 @@ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.15", + "getrandom", "libc", "spin", "untrusted", @@ -2751,7 +2758,7 @@ dependencies = [ "percent-encoding", "pest", "pest_derive", - "rand 0.8.5", + "rand", "regex", "serde", "serde_json", @@ -3069,7 +3076,7 @@ version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" dependencies = [ - "getrandom 0.2.15", + "getrandom", ] [[package]] @@ -3103,12 +3110,6 @@ dependencies = [ "try-lock", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -3484,7 +3485,7 @@ dependencies = [ "lzma-rs", "memchr", "pbkdf2", - "rand 0.8.5", + "rand", "sha1", "thiserror", "time", diff --git a/Cargo.toml b/Cargo.toml index 6a01779..4517eaa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ version = "0.1.0" [workspace.dependencies] lazy_static = "1" detour = { version = "0.8", default-features = false } +dmasm = { git = "https://github.com/willox/dmasm", tag = "515-support" } [workspace.lints.rust] static_mut_refs = "allow" diff --git a/auxcov/Cargo.toml b/auxcov/Cargo.toml index 3a2e6a3..788f6eb 100644 --- a/auxcov/Cargo.toml +++ b/auxcov/Cargo.toml @@ -14,7 +14,7 @@ crate-type = ["cdylib", "lib"] [dependencies] auxtools = { path = "../auxtools" } instruction_hooking = { path = "../instruction_hooking" } -dmasm = { git = "https://github.com/willox/dmasm" } +dmasm = { workspace = true } grcov = "0.8" [lints] diff --git a/debug_server/Cargo.toml b/debug_server/Cargo.toml index 3af1aad..94b3dbd 100644 --- a/debug_server/Cargo.toml +++ b/debug_server/Cargo.toml @@ -18,7 +18,7 @@ lazy_static = { workspace = true } serde = { version = "1", features = ["derive"] } bincode = "1" clap = "3" -dmasm = { git = "https://github.com/willox/dmasm" } +dmasm = { workspace = true } region = "3" detour = { workspace = true } diff --git a/instruction_hooking/Cargo.toml b/instruction_hooking/Cargo.toml index 5678717..df8037e 100644 --- a/instruction_hooking/Cargo.toml +++ b/instruction_hooking/Cargo.toml @@ -13,7 +13,7 @@ cc = "1.0" [dependencies] auxtools = { path = "../auxtools" } -dmasm = { git = "https://github.com/willox/dmasm" } +dmasm = { workspace = true } detour = { version = "0.8", default-features = false } symbolic-common = "12" symbolic-demangle = { version = "12", default-features = false } From c9b37d498aaaec8be9179c6f1c31c99b2561d178 Mon Sep 17 00:00:00 2001 From: Lucy Date: Sun, 23 Feb 2025 14:12:21 -0500 Subject: [PATCH 2/2] bump debug_server version to 2.3.4 --- Cargo.lock | 2 +- debug_server/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7cb8a91..d8ad71b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -655,7 +655,7 @@ dependencies = [ [[package]] name = "debug_server" -version = "2.3.3" +version = "2.3.4" dependencies = [ "auxtools", "bincode", diff --git a/debug_server/Cargo.toml b/debug_server/Cargo.toml index 94b3dbd..4133e33 100644 --- a/debug_server/Cargo.toml +++ b/debug_server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "debug_server" -version = "2.3.3" +version = "2.3.4" publish = false authors.workspace = true edition.workspace = true