Skip to content

Add "-Ctarget-feature=+crt-static" to rust flags for msvc compile to get rid off the dependency on "vcruntime140.dll" #1105

@elmkni

Description

@elmkni

Hi there!

My name is Elmar Knittel and I use Miniserve in conjunction with x-ite.

Miniserve is a fantastic tool for programs like x-ite that use XMLHttpRequest to pull in files (images etc) and therefore need a localhost server because of restricted CORS (cross origin resource sharing) policy!

Here's my request:

Please consider adding -Ctarget-feature=+crt-static to Rust flags for msvc compile to get rid off the dependency on vcruntime140.dll.

vcruntime140.dll is not part of standard Windows (not even for Windows11)!

At the moment I undergo the inconvenience to download the newest Rust-compiler, set it up and recompile Miniserve with -Ctarget-feature=+crt-static from source (including the download of over 300 Rust-crates) for every new version of Miniserve.

The increase in size is only 33792 bytes if packed with upx -9 --ultra-brute (96256 bytes unpacked)!

Best regards,

Elmar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions