[dependencies.aho-corasick]
default-features = false
version = "1.1"
[dependencies.jbytes_derive]
optional = true
version = "0.2.0"
[dependencies.jdefault_derive]
optional = true
version = "0"
[dependencies.jget]
features = ["derive"]
optional = true
version = "0"
[dependencies.jkcenum]
default-features = false
features = ["derive"]
version = "0.3.3"
[dependencies.memchr]
default-features = false
version = "2.7"
[dependencies.serde]
default-features = false
optional = true
version = "1.0"
[dependencies.thiserror]
default-features = false
optional = true
version = "1.0"
[dependencies.thiserror-no-std]
version = "2.0.2"
[dev-dependencies.jbytes_derive]
version = "0.2.0"
[dev-dependencies.jget]
features = ["derive"]
version = "0"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
[[example]]
name = "buffer_example"
path = "examples/buffer_example.rs"
[[example]]
name = "bytes_example"
path = "examples/bytes_example.rs"
[[example]]
name = "default_value_example"
path = "examples/default_value_example.rs"
[[example]]
name = "packet_ethernet_example"
path = "examples/packet_ethernet_example.rs"
[[example]]
name = "packet_http_example"
path = "examples/packet_http_example.rs"
[[example]]
name = "packet_http_example_2"
path = "examples/packet_http_example_2.rs"
[[example]]
name = "packet_http_example_3"
path = "examples/packet_http_example_3.rs"
[[example]]
name = "packet_ipv4_example"
path = "examples/packet_ipv4_example.rs"
[[example]]
name = "packet_parse_example"
path = "examples/packet_parse_example.rs"
[[example]]
name = "packet_tcp_example"
path = "examples/packet_tcp_example.rs"
[[example]]
name = "simple_example"
path = "examples/simple_example.rs"
[[example]]
name = "simple_example2"
path = "examples/simple_example2.rs"
[[example]]
name = "socket_example"
path = "examples/socket_example.rs"
[features]
default = ["std"]
derive = ["jbytes_derive"]
full = ["serde", "jbytes_derive", "jdefault_derive", "jget"]
jdefault = ["jdefault_derive"]
std = ["jkcenum/std", "thiserror", "memchr/std", "aho-corasick/std"]
[lib]
name = "jbytes"
path = "src/lib.rs"
[package]
authors = ["jankincai <jankincai12@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["development-tools", "encoding", "parser-implementations"]
description = "This is a byte stream structured serialization and deserialization library."
edition = "2021"
homepage = "https://github.com/caizhengxin/jbytes"
include = ["src/*", "tests/*", "benches/*", "examples/*", "Cargo.toml", "LICENSE*", "README.md"]
keywords = ["byte", "bytes", "jbytes", "serialization", "parsing"]
license = "MIT OR Apache-2.0"
name = "jbytes"
readme = "README.md"
repository = "https://github.com/caizhengxin/jbytes"
version = "0.2.0"
[profile.dev]
opt-level = 1
overflow-checks = false
[[test]]
name = "test_modifier_bits"
path = "tests/test_modifier_bits.rs"
[[test]]
name = "test_modifier_branch"
path = "tests/test_modifier_branch.rs"
[[test]]
name = "test_modifier_branch_bits"
path = "tests/test_modifier_branch_bits.rs"
[[test]]
name = "test_modifier_branch_default"
path = "tests/test_modifier_branch_default.rs"
[[test]]
name = "test_modifier_branch_range"
path = "tests/test_modifier_branch_range.rs"
[[test]]
name = "test_modifier_branch_value"
path = "tests/test_modifier_branch_value.rs"
[[test]]
name = "test_modifier_bytecount"
path = "tests/test_modifier_bytecount.rs"
[[test]]
name = "test_modifier_bytecount_outside"
path = "tests/test_modifier_bytecount_outside.rs"
[[test]]
name = "test_modifier_byteorder"
path = "tests/test_modifier_byteorder.rs"
[[test]]
name = "test_modifier_check_value"
path = "tests/test_modifier_check_value.rs"
[[test]]
name = "test_modifier_count"
path = "tests/test_modifier_count.rs"
[[test]]
name = "test_modifier_default"
path = "tests/test_modifier_default.rs"
[[test]]
name = "test_modifier_from_str"
path = "tests/test_modifier_from_str.rs"
[[test]]
name = "test_modifier_full"
path = "tests/test_modifier_full.rs"
[[test]]
name = "test_modifier_if_expr"
path = "tests/test_modifier_if_expr.rs"
[[test]]
name = "test_modifier_key"
path = "tests/test_modifier_key.rs"
[[test]]
name = "test_modifier_length"
path = "tests/test_modifier_length.rs"
[[test]]
name = "test_modifier_offset"
path = "tests/test_modifier_offset.rs"
[[test]]
name = "test_modifier_remaining"
path = "tests/test_modifier_remaining.rs"
[[test]]
name = "test_modifier_skip"
path = "tests/test_modifier_skip.rs"
[[test]]
name = "test_modifier_try_count"
path = "tests/test_modifier_try_count.rs"
[[test]]
name = "test_modifier_untake"
path = "tests/test_modifier_untake.rs"
[[test]]
name = "test_modifier_value"
path = "tests/test_modifier_value.rs"
[[test]]
name = "test_modifier_variable_name"
path = "tests/test_modifier_variable_name.rs"
[[test]]
name = "test_modifier_with"
path = "tests/test_modifier_with.rs"
[[test]]
name = "test_modifier_with2"
path = "tests/test_modifier_with2.rs"
[[test]]
name = "test_modifier_with2_1"
path = "tests/test_modifier_with2_1.rs"
[[test]]
name = "test_modifier_with_1"
path = "tests/test_modifier_with_1.rs"
[[test]]
name = "test_modifier_with_args"
path = "tests/test_modifier_with_args.rs"
[[test]]
name = "test_type_hashmap"
path = "tests/test_type_hashmap.rs"
[[test]]
name = "test_type_hashset"
path = "tests/test_type_hashset.rs"
[[test]]
name = "test_type_int_enum"
path = "tests/test_type_int_enum.rs"
[[test]]
name = "test_type_int_struct"
path = "tests/test_type_int_struct.rs"