[package]
edition = "2024"
rust-version = "1.85"
name = "mem_dbg"
version = "0.4.3"
authors = [
"Tommaso Fontana <tommaso.fontana.96@gmail.com>",
"Sebastiano Vigna <sebastiano.vigna@unimi.it>",
"Luca Cappelletti <cappelletti.luca94@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Traits and associated procedural macros to display recursively the layout and memory usage of a value"
readme = "README.md"
keywords = [
"allocation",
"debug",
"memory",
]
categories = ["development-tools::debugging"]
license = "Apache-2.0 OR LGPL-2.1-or-later"
repository = "https://github.com/zommiommy/mem_dbg-rs"
resolver = "2"
[package.metadata.docs.rs]
features = [
"std",
"derive",
"half",
"maligned",
"mmap-rs",
"rand",
"aliasable",
"maybe-dangling",
]
[features]
default = [
"std",
"derive",
]
derive = ["mem_dbg-derive"]
offset_of_enum = [
"derive",
"mem_dbg-derive/offset_of_enum",
]
std = []
[lib]
name = "mem_dbg"
path = "src/lib.rs"
[[example]]
name = "btree_set_comp"
path = "examples/btree_set_comp.rs"
required-features = ["std"]
[[example]]
name = "comparison"
path = "examples/comparison.rs"
required-features = [
"std",
"derive",
]
[[example]]
name = "example"
path = "examples/example.rs"
required-features = [
"std",
"derive",
]
[[example]]
name = "readme"
path = "examples/readme.rs"
required-features = [
"std",
"derive",
]
[[test]]
name = "all_types_helper"
path = "tests/all_types_helper.rs"
[[test]]
name = "test_aliasable_types"
path = "tests/test_aliasable_types.rs"
[[test]]
name = "test_all_types_mem_dbg"
path = "tests/test_all_types_mem_dbg.rs"
[[test]]
name = "test_all_types_mem_dbg_insta"
path = "tests/test_all_types_mem_dbg_insta.rs"
[[test]]
name = "test_all_types_mem_size"
path = "tests/test_all_types_mem_size.rs"
[[test]]
name = "test_atomics"
path = "tests/test_atomics.rs"
[[test]]
name = "test_binary_heap"
path = "tests/test_binary_heap.rs"
[[test]]
name = "test_btree"
path = "tests/test_btree.rs"
[[test]]
name = "test_cells"
path = "tests/test_cells.rs"
[[test]]
name = "test_core_wrapper_impls"
path = "tests/test_core_wrapper_impls.rs"
[[test]]
name = "test_correctness"
path = "tests/test_correctness.rs"
[[test]]
name = "test_cow"
path = "tests/test_cow.rs"
[[test]]
name = "test_derive_hygiene"
path = "tests/test_derive_hygiene.rs"
[[test]]
name = "test_entry_points_insta"
path = "tests/test_entry_points_insta.rs"
[[test]]
name = "test_flat_primitives"
path = "tests/test_flat_primitives.rs"
[[test]]
name = "test_followed_cycle_recursion"
path = "tests/test_followed_cycle_recursion.rs"
[[test]]
name = "test_half_types"
path = "tests/test_half_types.rs"
[[test]]
name = "test_handle_only_pointer_impls"
path = "tests/test_handle_only_pointer_impls.rs"
[[test]]
name = "test_hash_collections"
path = "tests/test_hash_collections.rs"
[[test]]
name = "test_io_types"
path = "tests/test_io_types.rs"
[[test]]
name = "test_linked_list"
path = "tests/test_linked_list.rs"
[[test]]
name = "test_locks"
path = "tests/test_locks.rs"
[[test]]
name = "test_maligned_types"
path = "tests/test_maligned_types.rs"
[[test]]
name = "test_maybe_dangling_types"
path = "tests/test_maybe_dangling_types.rs"
[[test]]
name = "test_mem_size"
path = "tests/test_mem_size.rs"
[[test]]
name = "test_mem_size_no_import"
path = "tests/test_mem_size_no_import.rs"
[[test]]
name = "test_mmap_rs"
path = "tests/test_mmap_rs.rs"
[[test]]
name = "test_mutex_guard"
path = "tests/test_mutex_guard.rs"
[[test]]
name = "test_net_time_dbg"
path = "tests/test_net_time_dbg.rs"
[[test]]
name = "test_nonzero"
path = "tests/test_nonzero.rs"
[[test]]
name = "test_option_result_dbg"
path = "tests/test_option_result_dbg.rs"
[[test]]
name = "test_optional_types_insta"
path = "tests/test_optional_types_insta.rs"
[[test]]
name = "test_padded_size_saturation"
path = "tests/test_padded_size_saturation.rs"
[[test]]
name = "test_pathbuf"
path = "tests/test_pathbuf.rs"
[[test]]
name = "test_phantom"
path = "tests/test_phantom.rs"
[[test]]
name = "test_pin_impls"
path = "tests/test_pin_impls.rs"
[[test]]
name = "test_rand"
path = "tests/test_rand.rs"
[[test]]
name = "test_ranges"
path = "tests/test_ranges.rs"
[[test]]
name = "test_ref_dedup_insta"
path = "tests/test_ref_dedup_insta.rs"
[[test]]
name = "test_result_impl"
path = "tests/test_result_impl.rs"
[[test]]
name = "test_rwlock_read_guard"
path = "tests/test_rwlock_read_guard.rs"
[[test]]
name = "test_rwlock_write_guard"
path = "tests/test_rwlock_write_guard.rs"
[[test]]
name = "test_smart_pointers"
path = "tests/test_smart_pointers.rs"
[[test]]
name = "test_strings"
path = "tests/test_strings.rs"
[[test]]
name = "test_tuple_zst_padding"
path = "tests/test_tuple_zst_padding.rs"
[[test]]
name = "test_unsafe_cell"
path = "tests/test_unsafe_cell.rs"
[[test]]
name = "test_vec_deque"
path = "tests/test_vec_deque.rs"
[[bench]]
name = "mem_size"
path = "benches/mem_size.rs"
harness = false
required-features = ["std"]
[dependencies.aliasable]
version = "0.1.3"
optional = true
[dependencies.bitflags]
version = "2.4.1"
[dependencies.half]
version = "2.0.4"
optional = true
[dependencies.hashbrown]
version = "0.16"
[dependencies.maligned]
version = "0.2.1"
optional = true
[dependencies.maybe-dangling]
version = "0.1.2"
optional = true
[dependencies.mem_dbg-derive]
version = "0.3.3"
optional = true
[dependencies.mmap-rs]
version = "0.7.0"
optional = true
[dependencies.rand]
version = "0.10.0"
optional = true
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.cap]
version = "0.1.2"
[dev-dependencies.comfy-table]
version = "=7.2.1"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.deepsize]
version = "0.2.0"
[dev-dependencies.get-size]
version = "0.1.4"
[dev-dependencies.insta]
version = "1.46.1"
[dev-dependencies.paste]
version = "1.0.15"
[dev-dependencies.regex]
version = "1"