Skip to content

Introduce path prefix for generated ::subxt code #655

@cmichi

Description

@cmichi

I'm running into a problem using subxt-codegen:

  • subxt-codegen generates code like this for certain code paths: ::subxt::tx::StaticTxPayload::new.
  • If subxt is not a root dependency of the invoking crate this results in a compiler error could not find 'subxt' in the list of imported crates.

I suggest to introduce an optional prefix which can be passed to subxt-codegen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions