Skip to content

hakari: re-compilation problem about build-dependencies #83

@xxchan

Description

@xxchan

By default, hakari will produce [build-dependencies] (I haven't learned why yet), but I found this will probably make a dependency compiled twice (under --release). This is because build-dependencies have different build profile configs

To compile quickly, all profiles, by default, do not optimize build dependencies

https://doc.rust-lang.org/cargo/reference/profiles.html#build-dependencies

@sunshowers Are you aware of this issue? I'm wondering what's the best practice. Is it better to remove build-dependencies in workspace-hack, or set profile.release.build-override 🤔

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