Skip to content

The EXE file compiled by rust cannot export related export functions #99749

Closed as not planned
@zofoc

Description

@zofoc

I encountered a problem with the rust compiler. In the bin program made by rust, I exported a function in the main unit, but I couldn't find the exported function with a third-party tool. I also use several other languages to do the same thing, and I can find the relevant exported functions. The function is simple in the following format:
#[no_mangle]
pub extern "C" fn func1(data:String)->i32{}
My final question is, does our Rust compile exe files that cannot export related export functions? This is the only language I have found that exe files cannot export functions. Does trust add such functions

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