Skip to content

The os_info dependency takes a long time to compile #189

@Danil42Russia

Description

@Danil42Russia

Problem

I started investigating where my project's build time was being spent. Currently, building 376 units takes 36 seconds, with the longest unit being objc2-foundation:

Image Image

objc2-foundation itself is a dependency of os_info, which is used in this library.

I created a project with human-panic and took the code from the example, and here we also see that 90% of the build time is spent on objc2-foundation:

Image

Possible solutions

Replace the os_info library with std::env::consts::OS from Rust itself.

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