mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 14:51:14 +00:00
5d64be26c3
* Move module metadata from json string to custom metadata * Revisit the metadata structures 1. Move the structures into the metadata crate. 2. Switch to using Cow/MaybeOwnedArray to support Encode/Decode * Adapt to new metadata structures * Convert event json metadata to new metadata structures * Convert storage json metadata to new metadata structures * Convert runtime metadata from json to new metadata structs * Implements new metadata structures in client and runtime * Fixes errors on `no_std` * Fixes errors after rebasing master * Do not use `Cow` anymore in metadata Also replace `String` with our own type definition `StringBuf`. This fixes compilation on `no_std`. * Wrap `RuntimeMetadata` in `RuntimeMetadataVersioned` to support versioning * Move metadata into `srml` and make core unaware of the implementation
20 lines
466 B
TOML
20 lines
466 B
TOML
[package]
|
|
name = "substrate-metadata"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
|
|
[dependencies]
|
|
parity-codec = { version = "1.1", default_features = false }
|
|
parity-codec-derive = { version = "^1.0", default_features = false }
|
|
serde = { version = "1.0", optional = true }
|
|
serde_derive = { version = "1.0", optional = true }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"parity-codec/std",
|
|
"parity-codec-derive/std",
|
|
"serde",
|
|
"serde_derive"
|
|
]
|