mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
e2547f5064
* Improve handling of unset `StorageVersion` When a user is forgetting to set the storage version in a pallet and calls `current_storage_version` to compare it against the `on_chain_storage_version` it will now fail to compile the code. Before the pallet macro just returned `StorageVersion::default()` for `current_storage_version` leading to potential issues with migrations. Besides that it also checks in `post_upgrade` that the pallet storage version was upgraded and thus, no migration was missed. * Use correct `Cargo.lock` * Fixes * Fix test * Update frame/support/test/tests/pallet.rs * Ensure we don't set a storage version when the pallet is missing the attribute * Fix merge conflict * Update frame/support/procedural/src/pallet/expand/hooks.rs Co-authored-by: Roman Useinov <roman.useinov@gmail.com> * Update frame/support/procedural/src/pallet/expand/hooks.rs Co-authored-by: Roman Useinov <roman.useinov@gmail.com> * Fix compilation * Do not run everything with `try-runtime` * Fix test * Apply suggestions from code review Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix `no-metadata-docs` --------- Co-authored-by: Roman Useinov <roman.useinov@gmail.com> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: parity-processbot <>
35 lines
852 B
TOML
35 lines
852 B
TOML
[package]
|
|
name = "sp-api-proc-macro"
|
|
version = "4.0.0-dev"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.io"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "Macros for declaring and implementing runtime apis."
|
|
documentation = "https://docs.rs/sp-api-proc-macro"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
quote = "1.0.26"
|
|
syn = { version = "2.0.14", features = ["full", "fold", "extra-traits", "visit"] }
|
|
proc-macro2 = "1.0.56"
|
|
blake2 = { version = "0.10.4", default-features = false }
|
|
proc-macro-crate = "1.1.3"
|
|
expander = "1.0.0"
|
|
Inflector = "0.11.4"
|
|
|
|
[dev-dependencies]
|
|
assert_matches = "1.3.0"
|
|
|
|
[features]
|
|
# Required for the doc tests
|
|
default = ["std"]
|
|
std = []
|
|
no-metadata-docs = []
|