Skip to content

Hygiene Problem in pvq-program-metadata-gen #70

Open
@indirection42

Description

@indirection42

Since the metadata generation code is derived from the original PVQ program code, the package imports below may conflict with the original source code.

fn import_packages() -> proc_macro2::TokenStream {
    quote! {
        extern crate alloc;
        use std::path::Path;
        use serde::Serialize;
        use parity_scale_codec::Encode;
        use scale_info::{
            form::{Form, MetaForm, PortableForm},
            prelude::vec::Vec,
            IntoPortable, PortableRegistry, Registry,
        };
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions