simple_endian 0.4.9

A create for defining endianness within your data structures, to make handling portable data structures simpler.
Documentation
[[bench]]
harness = false
name = "benches"
path = "benches/benches.rs"

[dependencies.encoding_rs]
default-features = false
optional = true
version = "0.8"

[dependencies.simple_endian_derive]
optional = true
version = "0.4.8"

[dev-dependencies.bencher]
version = "0.1.5"

[dev-dependencies.memmap]
version = "0.7"

[[example]]
name = "cpu_emulator"
path = "examples/cpu_emulator/main.rs"

[[example]]
name = "derive_protocol"
path = "examples/derive_protocol/main.rs"

[[example]]
name = "endian_values"
path = "examples/endian_values/main.rs"

[[example]]
name = "enum_protocol"
path = "examples/enum_protocol/main.rs"

[[example]]
name = "ethernet_inspector"
path = "examples/ethernet_inspector/main.rs"

[[example]]
name = "explicit_struct_endian"
path = "examples/explicit_struct_endian/main.rs"

[[example]]
name = "fat16_driver"
path = "examples/fat16_driver/main.rs"

[[example]]
name = "messaging_client"
path = "examples/messaging_client/main.rs"

[[example]]
name = "messaging_server"
path = "examples/messaging_server/main.rs"

[[example]]
name = "simple_endian_usage"
path = "examples/simple_endian_usage/main.rs"

[[example]]
name = "text_ops_usage"
path = "examples/text_ops_usage/main.rs"

[features]
big_endian = []
bitwise = ["integer_impls"]
both_endian = ["big_endian", "little_endian"]
byte_impls = []
comparisons = []
default = ["bitwise", "comparisons", "format", "math_ops", "neg_ops", "shift_ops", "both_endian", "float_impls", "integer_impls", "byte_impls", "simple_bool", "simple_byte_impls"]
derive = ["dep:simple_endian_derive"]
float_impls = ["integer_impls"]
format = []
integer_impls = []
io = ["io-std"]
io-core = []
io-std = ["io-core"]
little_endian = []
math_ops = []
neg_ops = []
nonzero = ["integer_impls"]
shift_ops = []
simple_all = ["simple_bool", "simple_byte_impls", "simple_char_impls", "simple_string_impls"]
simple_bool = []
simple_byte_impls = []
simple_char_impls = []
simple_specific_endian_bridge = []
simple_string_impls = []
text_all = ["text_utf8", "text_utf16", "text_utf32", "text_fixed"]
text_encoding_rs = ["dep:encoding_rs"]
text_fixed = []
text_utf16 = []
text_utf32 = []
text_utf8 = []
wrapping = ["integer_impls"]

[lib]
name = "simple_endian"
path = "src/lib.rs"

[package]
authors = ["Erica Stith <rexlunae@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "A create for defining endianness within your data structures, to make handling portable data structures simpler."
documentation = "https://docs.rs/simple_endian/"
edition = "2024"
homepage = "https://github.com/rexlunae/simple-endian-rs"
keywords = ["endian", "byteorder", "big-endian", "little-endian", "data-structures"]
license = "MIT"
name = "simple_endian"
readme = "README.md"
repository = "https://github.com/rexlunae/simple-endian-rs"
version = "0.4.9"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[[test]]
name = "derive_byte_array_passthrough"
path = "tests/derive_byte_array_passthrough.rs"

[[test]]
name = "derive_endian_array"
path = "tests/derive_endian_array.rs"

[[test]]
name = "derive_endianize"
path = "tests/derive_endianize.rs"

[[test]]
name = "derive_enum_io_roundtrip"
path = "tests/derive_enum_io_roundtrip.rs"

[[test]]
name = "derive_enum_tuple_text"
path = "tests/derive_enum_tuple_text.rs"

[[test]]
name = "derive_io_roundtrip"
path = "tests/derive_io_roundtrip.rs"

[[test]]
name = "derive_io_roundtrip_text_utf8"
path = "tests/derive_io_roundtrip_text_utf8.rs"

[[test]]
name = "derive_io_wire_auto_impl"
path = "tests/derive_io_wire_auto_impl.rs"

[[test]]
name = "derive_repr_c"
path = "tests/derive_repr_c.rs"

[[test]]
name = "derive_repr_packed"
path = "tests/derive_repr_packed.rs"

[[test]]
name = "derive_repr_packed_size"
path = "tests/derive_repr_packed_size.rs"

[[test]]
name = "derive_text_padding"
path = "tests/derive_text_padding.rs"

[[test]]
name = "derive_text_padding_utf32"
path = "tests/derive_text_padding_utf32.rs"

[[test]]
name = "derive_text_padding_utf8"
path = "tests/derive_text_padding_utf8.rs"

[[test]]
name = "derive_tuple_struct_support"
path = "tests/derive_tuple_struct_support.rs"

[[test]]
name = "derive_union_no_io"
path = "tests/derive_union_no_io.rs"

[[test]]
name = "derive_wire_derive_passthrough"
path = "tests/derive_wire_derive_passthrough.rs"

[[test]]
name = "derive_wire_naming_edge_cases"
path = "tests/derive_wire_naming_edge_cases.rs"

[[test]]
name = "fixed_text_padding_semantics"
path = "tests/fixed_text_padding_semantics.rs"

[[test]]
name = "fixed_text_wire_endian_bytes"
path = "tests/fixed_text_wire_endian_bytes.rs"

[[test]]
name = "io_dyn_ext_traits"
path = "tests/io_dyn_ext_traits.rs"

[[test]]
name = "layout_padding_wrappers"
path = "tests/layout_padding_wrappers.rs"

[[test]]
name = "no_std_compatibility"
path = "tests/no_std_compatibility.rs"

[[test]]
name = "nonzero"
path = "tests/nonzero.rs"

[[test]]
name = "simple_specific_endian_bridge"
path = "tests/simple_specific_endian_bridge.rs"

[[test]]
name = "specific_endian_tuple_wrappers"
path = "tests/specific_endian_tuple_wrappers.rs"

[[test]]
name = "text_encoding_rs"
path = "tests/text_encoding_rs.rs"

[[test]]
name = "text_utf8_fixed"
path = "tests/text_utf8_fixed.rs"

[[test]]
name = "wrapping"
path = "tests/wrapping.rs"