Skip to content

Generating #[derive(TypedBuilder)] in another crate forces all crates under to add typed-builder as a dependency #109

Closed
@awesomelemonade

Description

@awesomelemonade

See leptos-rs/leptos#1496. If Leptos updates to 0.15, it forces all leptos apps to add typed-builder to its dependencies in the Cargo.toml which is not ideal.

The easiest way to fix this is to revert this commit: b9ca287, which would mean each type would now have its own Optional again. This would yield more generated code.

Had a note here, but I guess it was forgotten about:
b9ca287#diff-f4519feb64908d4106578124d2bb7d0fbc21b38c3ae011d89aa95b2320feb7a8L170

Ideally, this should be resolved with rust-lang/rust#54363. There are potential workarounds here: frozenlib/parse-display#28, but that may require more effort to investigate and implement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions