[[bench]]
harness = false
name = "buf"
path = "benches/buf.rs"
required-features = ["test-util"]
[[bench]]
harness = false
name = "bytesbuf_vs_bytes"
path = "benches/bytesbuf_vs_bytes.rs"
required-features = ["test-util"]
[[bench]]
harness = false
name = "global_pool"
path = "benches/global_pool.rs"
[[bench]]
harness = false
name = "view"
path = "benches/view.rs"
required-features = ["test-util"]
[dependencies.bytes]
default-features = false
features = ["std"]
optional = true
version = "1.11.0"
[dependencies.infinity_pool]
default-features = false
version = "0.8.1"
[dependencies.new_zealand]
default-features = false
version = "1.0.1"
[dependencies.nm]
default-features = false
version = "0.1.21"
[dependencies.num-traits]
default-features = false
version = "0.2.19"
[dependencies.smallvec]
default-features = false
features = ["const_new", "union"]
version = "1.15.1"
[dev-dependencies.alloc_tracker]
default-features = false
version = "0.5.9"
[dev-dependencies.bytes]
default-features = false
features = ["std"]
version = "1.11.0"
[dev-dependencies.criterion]
default-features = false
version = "0.7.0"
[dev-dependencies.mutants]
default-features = false
version = "0.0.3"
[dev-dependencies.static_assertions]
default-features = false
version = "1.1.0"
[dev-dependencies.windows-sys]
default-features = false
version = "0.61.2"
[[example]]
name = "bb_basic"
path = "examples/bb_basic.rs"
[[example]]
name = "bb_has_memory_forwarding"
path = "examples/bb_has_memory_forwarding.rs"
required-features = ["test-util"]
[[example]]
name = "bb_has_memory_global"
path = "examples/bb_has_memory_global.rs"
[[example]]
name = "bb_has_memory_optimizing"
path = "examples/bb_has_memory_optimizing.rs"
required-features = ["test-util"]
[[example]]
name = "bb_optimal_path"
path = "examples/bb_optimal_path.rs"
[[example]]
name = "bb_reuse"
path = "examples/bb_reuse.rs"
[[example]]
name = "bb_slice_by_slice_write"
path = "examples/bb_slice_by_slice_write.rs"
[[example]]
name = "bb_slice_count_metric"
path = "examples/bb_slice_count_metric.rs"
[[example]]
name = "bb_static_data"
path = "examples/bb_static_data.rs"
required-features = ["test-util"]
[features]
bytes-compat = ["dep:bytes"]
default = []
test-util = []
[lib]
name = "bytesbuf"
path = "src/lib.rs"
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_pointer_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
map_err_ignore = "warn"
missing_const_for_fn = "allow"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "warn"
option_if_let_else = "allow"
panic = "warn"
redundant_pub_crate = "allow"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
should_panic_without_expect = "allow"
significant_drop_tightening = "allow"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
wildcard_imports = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(coverage,coverage_nightly)"]
level = "warn"
priority = 0
[lints.rustdoc]
missing_crate_level_docs = "warn"
unescaped_backticks = "warn"
[package]
authors = ["The Oxidizer Project Authors"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["data-structures", "network-programming"]
description = "Types for creating and manipulating byte sequences."
edition = "2024"
homepage = "https://github.com/microsoft/oxidizer"
keywords = ["oxidizer", "buffers", "io", "zero-copy"]
license = "MIT"
name = "bytesbuf"
readme = "README.md"
repository = "https://github.com/microsoft/oxidizer"
resolver = "2"
rust-version = "1.88"
version = "0.2.0"
[package.metadata.cargo_check_external_types]
allowed_external_types = ["bytes::bytes::Bytes", "bytes::buf::buf_impl::Buf", "bytes::buf::uninit_slice::UninitSlice", "bytes::buf::buf_mut::BufMut", "num_traits::ops::bytes::FromBytes", "num_traits::ops::bytes::ToBytes"]
[package.metadata.docs.rs]
all-features = true
[target.'cfg(target_os = "linux")'.dev-dependencies.libc]
default-features = false
version = "0.2.178"