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
The
bstrcrate has an optional dependency onserdeto 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
icu4xrepository but are intended to be used outside the context of icu4x.I believe
bstrdepending ondatabake,writeable, andzerovecis the correct direction:bstrdefines a concrete type that implements the traits exported fromdatabake,writeable, andzerovec, 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
bstrside. 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 ofzerovecandwriteable.CC @Manishearth @hsivonen