Skip to content

Rust bindings do not output import statements for enums when expected #1313

@krisbitney

Description

@krisbitney

Describe the bug
In an imported module that uses an enum, Rust bindings are being generated without the required import statement.

The import statements are missing in wrap/imported/concurrent_module/serialization.rs.

Expected behavior
I expected the following at the top of wrap/imported/concurrent_module/serialization.rs:

use crate::{
    ConcurrentReturnWhen,
    get_concurrent_return_when_value,
    sanitize_concurrent_return_when_value,
    get_concurrent_task_status_value,
    sanitize_concurrent_task_status_value,
};

Please provide the steps to reproduce and if possible a minimal demo of the problem.
TODO

Screenshots / logs
Screen Shot 2022-10-10 at 7 10 39 PM
Screen Shot 2022-10-10 at 7 10 22 PM

Schema of imported interface:
https://github.com/polywrap/integrations/blob/main/system/concurrency/interface/src/schema.graphql

Relevant environment details:

  • OS: MacOS

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions