Skip to content

Consider providing an option for dynamic linking #6470

Description

@sergiimk

Is your feature request related to a problem or challenge?

datafusion is a "swiss army knife" kind of library - it's large and developing against it means ~13 second link times every time you re-run tests, even with modern linkers like mold.

I recently tried the approach described in this blog post - wrapping datafusion into a dynamic library. This reduced my incremental test build times by ~10 seconds!

Describe the solution you'd like

Bevy project (also a very large library) now offer a feature flag to link it dynamically.

Specifying crate-type = ["rlib", "dylib"] might also be enough to let users easily link datafusion dynamically in their dev builds using RUSTFLAGS="-C prefer-dynamic".

It may iterations speeds for datafusion's own development.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions