mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
Use proc macros to generate conversion functions for MultiLocation (#3635)
* Use proc macros to generate conversion functions for MultiLocation * Add compile test and missing conversion cases * Add common derives for Parent and Ancestor * Generate conversion functions for MultiLocation v0 via proc macro * Add type conversion test and fix a bug * cargo fmt * Do not hardcode 8 as the number of max parents * Use map instead of for loops when generating code fragments * Spelling * cargo fmt * More mapping, less for-looping
This commit is contained in:
@@ -10,6 +10,7 @@ impl-trait-for-tuples = "0.2.0"
|
||||
parity-scale-codec = { version = "2.0.0", default-features = false, features = [ "derive" ] }
|
||||
derivative = {version = "2.2.0", default-features = false, features = [ "use_core" ] }
|
||||
log = { version = "0.4.14", default-features = false }
|
||||
xcm-procedural = { path = "procedural" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
Reference in New Issue
Block a user