Skip to content

Support for databake, writeable, zerovec traits? #183

@sffc

Description

@sffc

The bstr crate has an optional dependency on serde to add Serialize/Deserialize impls.

Would you accept a pull request adding implementations of the following traits behind optional, non-default features?

Both of these crates live in the icu4x repository but are intended to be used outside the context of icu4x.

I believe bstr depending on databake, writeable, and zerovec is the correct direction: bstr defines a concrete type that implements the traits exported from databake, writeable, and zerovec, which implement the traits on standard library types.

One risk of the dependency going in this direction is that we haven't released these crates at 1.0 yet, so the traits may be subject to change, which can make it annoying on the bstr side. We could alternatively consider a dependency going in the other direction, at least to start, and then switch the dependency direction when we reach 1.0 of zerovec and writeable.

CC @Manishearth @hsivonen

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