Skip to content

Rust DAPI client does not export AddressListError #2264

@pshenmic

Description

@pshenmic

Expected Behavior

Able match on any Dapi Client's error

Current Behavior

When RS Dapi Client used in external project, and you try to match on response received from DAPI, the application cannot be built

error[E0603]: module `address_list` is private
 --> src/grpc/get_identity_by_public_key_hash.rs:9:21
  |
9 | use rs_dapi_client::address_list::AddressListError;
  |                     ^^^^^^^^^^^^  ---------------- enum `AddressListError` is not publicly re-exported
  |                     |
  |                     private module
  |
note: the module `address_list` is defined here
 --> /Users/pshenmic/RustroverProjects/platform/packages/rs-dapi-client/src/lib.rs:5:1
  |
5 | mod address_list;
  | ^^^^^^^^^^^^^^^^

Possible Solution

pub modificator is missing on address_list rust crate

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop, server, or mobile):
  • Link to your project:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions