Skip to content

RUSTFLAGS='-C target-feature=+crt-static' cargo build --release #19

@panov-andy

Description

@panov-andy

Hi Guys,

I'm trying statically compile Salvo sample server https://github.com/salvo-rs/salvo/tree/v0.37.x/examples/acme-http01
with the command but getting error.
Is it something you can fix?

$ RUSTFLAGS='-C target-feature=+crt-static' cargo build --release
error: cannot produce proc-macro for `asn1-rs-derive v0.4.0` as the target `x86_64-unknown-linux-gnu` does not support these crate types

Thank you.

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