wrap-cli icon indicating copy to clipboard operation
wrap-cli copied to clipboard

Rust bindings do not output import statements for enums when expected

Open krisbitney opened this issue 3 years ago • 0 comments

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

krisbitney avatar Oct 10 '22 14:10 krisbitney