`cpu-endian` is a portable crate to detect CPU byte order.
It detects how CPU native scalar type is ordered; little-endian or big-endian, or something else (like PDP-endian, mixed-endian, middle-endian, and so on.)
#!/bin/shcheck_license(){localpath="$1"if!grep -q"LGPL-3.0-or-later OR Apache-2.0 OR BSD-2-Clause OR MIT""$path";thenecho"$path"'lacks of the license.'>&2exit 1fi}(cd`git rev-parse --show-toplevel`for f in$(find src -type f -name'*.rs');docheck_license"$f"donecargo fmt -- --check ||exit"$?"cargo test||exit"$?"exit 0)