Allow for remapping type parameters in type substitutions (#735)

* feat!: Allow for remapping type parameters in type substitutions

* chore: cargo fmt

* chore: cargo clippy

* chore: Remove some old code

* a little tidy

* address comment nit

Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
Igor MatuszewskiandJames Wilson authored and GitHub committed 2023-01-19 10:49:57 +00:00
1 parent b7a29a5efe
commit 977f2a3333
14 files changed
+541 -331

No files matched your search

+6 -5
View File
@@ -89,12 +89,13 @@ async fn run() {
r#"
#[subxt::subxt(
runtime_metadata_path = "{}",
derive_for_all_types = "Eq, PartialEq"
derive_for_all_types = "Eq, PartialEq",
substitute_type(
type = "sp_arithmetic::per_things::Perbill",
with = "::sp_runtime::Perbill"
)
)]
pub mod node_runtime {{
#[subxt(substitute_type = "sp_arithmetic::per_things::Perbill")]
use ::sp_runtime::Perbill;
}}
pub mod node_runtime {{}}
"#,
metadata_path
.to_str()