candid v0.7.0 Release Notes
-
๐ฅ Breaking changes
- ๐ Require full subtype checking in deserialization. This removes undefined behavior when trying to decode variant and empty vector at types that are not supertype of the wire type.
- Deserialization requires both
Deserialize
andCandidType
trait. - ๐
de::ArgumentDecoder
,ser::ArgumentEncoder
moved toutils::{ArgumentDecoder, ArgumentEncoder}
. - ๐
types::subtype
returnsResult<()>
instead ofbool
for better error message. - Disable subtyping conversion for opt rules in
IDLValue.annotate_type
. - Display type annotations for number types.
Non-breaking changes
- ๐ Better error messages in deserialization
- โ Remove unnessary
reqwest
dependency - Implement CandidType for
str