Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tysh
Tysh is th crate that helps with hashing the metadata of a type.
Purpose
Tysh is a tool that is meant to be used with the bincode crate, which helps with serializing data. The bincode crate has some compatibility issues with certain data structures, such as the Color { r: u8, g: u8, b: u8 } and Color { b: u8, g: u8, r: u8 } structures, even though they have the same type structure and are compatible with JSON serialization. This is because bincode can change the meaning of the data when serializing and deserializing it.
To avoid this problem, tysh also provides field names along with the type information, which helps to ensure compatibility between different versions of data structures.
How to use
use TypeHash;
This will generate the following code:
You can also use the #[type_hash(name = "name")] attribute to specify the internal name.
use TypeHash;