diff --git a/CHANGELOG.md b/CHANGELOG.md index 8818570ba..da736327c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,15 +4,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -[Unreleased] +## [5.0.0] -### Fixed -- Fix "chain configuration not found" error - [#1786](https://github.com/paritytech/cargo-contract/pull/1786) -- Fix "chain configuration not found" error (Rust 1.79) - [#1821](https://github.com/paritytech/cargo-contract/pull/1821) -- Validate externally passed Rust toolchain identifiers - [#1817](https://github.com/paritytech/cargo-contract/pull/1817) -- For contract verification: don't rely on Wasm hash in metadata - [#1820](https://github.com/paritytech/cargo-contract/pull/1820) +This release concludes the migration of ink! from Parity to the outside world. It doesn't come with any new features, we just: -## [5.0.0-alpha] +* …changed the Parity URLs to ones for our new GitHub organization +[@use-ink](https://github.com/use-ink/). +* …upgraded many dependencies to newer versions, which results in two particular + breaking changes regarding compatibility: + * We had to remove support for Substrate metadata that is below + `V14` in [#1722](https://github.com/use-ink/cargo-contract/pull/1722). Metadata formats below `V14` are quite old and we hope this doesn't affect anyone. + * `cargo-contract` v5 works only with Rust >= 1.81. ### Changed - Updated the toolchain version used by `ink_linting` - [#1616](https://github.com/use-ink/cargo-contract/pull/1616) diff --git a/Cargo.lock b/Cargo.lock index 0a0007810..22f256db1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -758,7 +758,7 @@ dependencies = [ "futures-lite", "parking", "polling", - "rustix 0.38.40", + "rustix 0.38.41", "slab", "tracing", "windows-sys 0.59.0", @@ -801,7 +801,7 @@ dependencies = [ "cfg-if", "event-listener", "futures-lite", - "rustix 0.38.40", + "rustix 0.38.41", "tracing", ] @@ -817,7 +817,7 @@ dependencies = [ "cfg-if", "futures-core", "futures-io", - "rustix 0.38.40", + "rustix 0.38.41", "signal-hook-registry", "slab", "windows-sys 0.59.0", @@ -1538,9 +1538,9 @@ checksum = "5ce89b21cab1437276d2650d57e971f9d548a2d9037cc231abdc0562b97498ce" [[package]] name = "bytemuck" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8334215b81e418a0a7bdb8ef0849474f40bb10c8b71f1c4ed315cff49f32494d" +checksum = "8b37c88a63ffd85d15b406896cc343916d7cf57838a847b3a6f2ca5d39a5695a" [[package]] name = "byteorder" @@ -1565,7 +1565,7 @@ dependencies = [ [[package]] name = "cargo-contract" -version = "5.0.0-alpha" +version = "5.0.0" dependencies = [ "anyhow", "assert_cmd", @@ -1915,7 +1915,7 @@ checksum = "cd7e35aee659887cbfb97aaf227ac12cad1a9d7c71e55ff3376839ed4e282d08" [[package]] name = "contract-analyze" -version = "5.0.0-alpha" +version = "5.0.0" dependencies = [ "anyhow", "contract-metadata", @@ -1925,7 +1925,7 @@ dependencies = [ [[package]] name = "contract-build" -version = "5.0.0-alpha" +version = "5.0.0" dependencies = [ "anyhow", "blake2", @@ -1966,7 +1966,7 @@ dependencies = [ [[package]] name = "contract-extrinsics" -version = "5.0.0-alpha" +version = "5.0.0" dependencies = [ "anyhow", "assert_cmd", @@ -2004,7 +2004,7 @@ dependencies = [ [[package]] name = "contract-metadata" -version = "5.0.0-alpha" +version = "5.0.0" dependencies = [ "anyhow", "impl-serde 0.5.0", @@ -2017,7 +2017,7 @@ dependencies = [ [[package]] name = "contract-transcode" -version = "5.0.0-alpha" +version = "5.0.0" dependencies = [ "anyhow", "assert_matches", @@ -2236,7 +2236,7 @@ dependencies = [ "crossterm_winapi", "mio", "parking_lot", - "rustix 0.38.40", + "rustix 0.38.41", "signal-hook", "signal-hook-mio", "winapi", @@ -4150,9 +4150,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbbff0a806a4728c99295b254c8838933b5b082d75e3cb70c8dab21fdfbcfa9a" +checksum = "97818827ef4f364230e16705d4706e2897df2bb60617d6ca15d598025a3c481f" dependencies = [ "bytes", "futures-channel", @@ -4784,9 +4784,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +checksum = "7a73e9fe3c49d7afb2ace819fa181a287ce54a0983eda4e0eb05c22f82ffe534" [[package]] name = "jni" @@ -4984,9 +4984,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.162" +version = "0.2.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398" +checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" [[package]] name = "libm" @@ -5240,7 +5240,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.40", + "rustix 0.38.41", ] [[package]] @@ -7602,9 +7602,9 @@ checksum = "16b56e3a2420138bdb970f84dfb9c774aea80fa0e7371549eedec0d80c209c67" [[package]] name = "parity-scale-codec" -version = "3.6.12" +version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" +checksum = "8be4817d39f3272f69c59fe05d0535ae6456c2dc2fa1ba02910296c7e0a5c590" dependencies = [ "arrayvec 0.7.6", "bitvec", @@ -7612,19 +7612,20 @@ dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec-derive", + "rustversion", "serde", ] [[package]] name = "parity-scale-codec-derive" -version = "3.6.12" +version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" +checksum = "8781a75c6205af67215f382092b6e0a4ff3734798523e69073d4bcd294ec767b" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.87", ] [[package]] @@ -8507,7 +8508,7 @@ dependencies = [ "concurrent-queue", "hermit-abi 0.4.0", "pin-project-lite", - "rustix 0.38.40", + "rustix 0.38.41", "tracing", "windows-sys 0.59.0", ] @@ -9220,9 +9221,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.40" +version = "0.38.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99e4ea3e1cdc4b559b8e5650f9c8e5998e3e5c1343b4eaf034565f32318d63c0" +checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" dependencies = [ "bitflags 2.6.0", "errno", @@ -9233,9 +9234,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.16" +version = "0.23.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eee87ff5d9b36712a58574e12e9f0ea80f915a5b0ac518d322b24a465617925e" +checksum = "7f1a745511c54ba6d4465e8d5dfbd81b45791756de28d4981af70d6dca128f1e" dependencies = [ "log", "once_cell", @@ -9665,9 +9666,9 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.26" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01227be5826fa0690321a2ba6c5cd57a19cf3f6a09e76973b58e61de6ab9d1c1" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" dependencies = [ "windows-sys 0.59.0", ] @@ -9875,7 +9876,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" dependencies = [ - "semver-parser 0.10.2", + "semver-parser 0.10.3", ] [[package]] @@ -9895,9 +9896,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "semver-parser" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" +checksum = "9900206b54a3527fdc7b8a938bffd94a568bac4f4aa8113b209df75a09c0dec2" dependencies = [ "pest", ] @@ -12193,9 +12194,9 @@ dependencies = [ [[package]] name = "sync_wrapper" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" dependencies = [ "futures-core", ] @@ -12244,7 +12245,7 @@ dependencies = [ "cfg-if", "fastrand", "once_cell", - "rustix 0.38.40", + "rustix 0.38.41", "windows-sys 0.59.0", ] @@ -12741,9 +12742,9 @@ checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" [[package]] name = "unicode-ident" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] name = "unicode-normalization" @@ -13414,15 +13415,15 @@ checksum = "c9cad3279ade7346b96e38731a641d7343dd6a53d55083dd54eadfa5a1b38c6b" dependencies = [ "either", "home", - "rustix 0.38.40", + "rustix 0.38.41", "winsafe", ] [[package]] name = "wide" -version = "0.7.28" +version = "0.7.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b828f995bf1e9622031f8009f8481a85406ce1f4d4588ff746d872043e855690" +checksum = "58e6db2670d2be78525979e9a5f9c69d296fd7d670549fe9ebf70f8708cb5019" dependencies = [ "bytemuck", "safe_arch", diff --git a/crates/analyze/Cargo.toml b/crates/analyze/Cargo.toml index 15a26af4c..f4abd5c36 100644 --- a/crates/analyze/Cargo.toml +++ b/crates/analyze/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract-analyze" -version = "5.0.0-alpha" +version = "5.0.0" authors = ["Use Ink "] edition = "2021" @@ -14,7 +14,7 @@ keywords = ["wasm", "ink", "webassembly", "blockchain", "edsl"] include = ["Cargo.toml", "*.rs", "LICENSE"] [dependencies] -contract-metadata = { version = "5.0.0-alpha", path = "../metadata" } +contract-metadata = { version = "5.0.0", path = "../metadata" } wasmparser = "0.220.0" anyhow = "1.0.83" diff --git a/crates/build/Cargo.toml b/crates/build/Cargo.toml index 2261bae2b..41926904d 100644 --- a/crates/build/Cargo.toml +++ b/crates/build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract-build" -version = "5.0.0-alpha" +version = "5.0.0" authors = ["Use Ink "] edition = "2021" @@ -47,7 +47,7 @@ tokio-stream = "0.1" bollard = "0.18" crossterm = "0.28.1" -contract-metadata = { version = "5.0.0-alpha", path = "../metadata" } +contract-metadata = { version = "5.0.0", path = "../metadata" } [target.'cfg(unix)'.dependencies] uzers = "0.12" diff --git a/crates/cargo-contract/Cargo.toml b/crates/cargo-contract/Cargo.toml index d686ccbc8..3125a477a 100644 --- a/crates/cargo-contract/Cargo.toml +++ b/crates/cargo-contract/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-contract" -version = "5.0.0-alpha" +version = "5.0.0" authors = ["Use Ink "] build = "build.rs" edition = "2021" @@ -18,11 +18,11 @@ include = [ ] [dependencies] -contract-build = { version = "5.0.0-alpha", path = "../build" } -contract-extrinsics = { version = "5.0.0-alpha", path = "../extrinsics" } -contract-transcode = { version = "5.0.0-alpha", path = "../transcode" } -contract-metadata = { version = "5.0.0-alpha", path = "../metadata" } -contract-analyze = { version = "5.0.0-alpha", path = "../analyze" } +contract-build = { version = "5.0.0", path = "../build" } +contract-extrinsics = { version = "5.0.0", path = "../extrinsics" } +contract-transcode = { version = "5.0.0", path = "../transcode" } +contract-metadata = { version = "5.0.0", path = "../metadata" } +contract-analyze = { version = "5.0.0", path = "../analyze" } anyhow = "1.0.83" clap = { version = "4.5.4", features = ["derive", "env"] } diff --git a/crates/extrinsics/Cargo.toml b/crates/extrinsics/Cargo.toml index bf34954d8..c611d688f 100644 --- a/crates/extrinsics/Cargo.toml +++ b/crates/extrinsics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract-extrinsics" -version = "5.0.0-alpha" +version = "5.0.0" authors = ["Use Ink "] edition = "2021" rust-version = "1.70" @@ -15,9 +15,9 @@ keywords = ["wasm", "ink", "webassembly", "blockchain", "edsl"] include = ["Cargo.toml", "*.rs", "LICENSE",] [dependencies] -contract-build = { version = "5.0.0-alpha", path = "../build" } -contract-metadata = { version = "5.0.0-alpha", path = "../metadata" } -contract-transcode = { version = "5.0.0-alpha", path = "../transcode" } +contract-build = { version = "5.0.0", path = "../build" } +contract-metadata = { version = "5.0.0", path = "../metadata" } +contract-transcode = { version = "5.0.0", path = "../transcode" } anyhow = "1.0.83" blake2 = { version = "0.10.6", default-features = false } diff --git a/crates/metadata/Cargo.toml b/crates/metadata/Cargo.toml index 5c20469e2..bae8c1b0a 100644 --- a/crates/metadata/Cargo.toml +++ b/crates/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract-metadata" -version = "5.0.0-alpha" +version = "5.0.0" authors = ["Use Ink "] edition = "2021" diff --git a/crates/metadata/compatibility_list.json b/crates/metadata/compatibility_list.json index 95d48f252..af199af21 100644 --- a/crates/metadata/compatibility_list.json +++ b/crates/metadata/compatibility_list.json @@ -28,7 +28,7 @@ "5.0.0" ] }, - "5.0.0-alpha": { + "5.0.0": { "ink": [ ">=5.0.0-rc.2", "5.0.0" diff --git a/crates/transcode/Cargo.toml b/crates/transcode/Cargo.toml index 1347aadfd..7b41efcdc 100644 --- a/crates/transcode/Cargo.toml +++ b/crates/transcode/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract-transcode" -version = "5.0.0-alpha" +version = "5.0.0" authors = ["Use Ink "] edition = "2021" @@ -20,7 +20,7 @@ path = "src/lib.rs" anyhow = "1.0.83" base58 = { version = "0.2.0" } blake2 = { version = "0.10.6", default-features = false } -contract-metadata = { version = "5.0.0-alpha", path = "../metadata" } +contract-metadata = { version = "5.0.0", path = "../metadata" } escape8259 = "0.5.2" hex = "0.4.3" indexmap = "2.2.6"