Skip to content

Update thiserror to 2.0 and derive_builder to 0.20 to eliminate duplicate dependency versions #228

Description

@sakobu

Description

clarabel 0.11.1 currently depends on thiserror 1.0 and derive_builder 0.11.

This results in the following downstream dependency trees:

thiserror 1.0
thiserror-impl 1.0.69

derive_builder 0.11
darling 0.14
syn 1.0.109

Downstream crates that already use thiserror 2 and syn 2 must therefore compile both major versions.

Proposed changes:

Update thiserror from 1.0 to 2.0.

Update derive_builder from 0.11 to 0.20. This moves its internal darling dependency onto the syn 2 line.

Both dependencies appear to be internal implementation details, so these updates should not affect the public API or MSRV.

The change should allow downstream dependency trees to use a single version of thiserror, thiserror-impl, and syn.

I am happy to open a pull request for the thiserror update.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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