Skip to content

How to import module in Rust? #211

@ieviev

Description

@ieviev

Hi! i could not find a way to import modules to rust. Is there a way to do this?

Currently a workaround is to inject it into an outer attribute tag like:

[<Fable.Core.Rust.OuterAttr("allow(unused)]\nmod rust_glue;\nmod helpers;\n#[cfg",
                            [| "target_arch = \"wasm32\"" |])>]

which gives a result like this:

Image

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