# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "get-size2" version = "0.1.2" authors = [ "Denis Kerp", "Nicolas", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Determine the size in bytes an object occupies inside RAM." readme = "README.md" keywords = [ "size", "heap", "ram", "memory", "get-size", ] categories = [ "memory-management", "caching", ] license = "MIT OR Apache-2.0" repository = "https://github.com/bircni/get-size2/tree/main/get-size2" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "get_size2" path = "src/lib.rs" [[example]] name = "derive_enum" path = "examples/derive_enum.rs" [[example]] name = "derive_generics" path = "examples/derive_generics.rs" [[example]] name = "derive_struct" path = "examples/derive_struct.rs" [[example]] name = "fixed_values" path = "examples/fixed_values.rs" [[example]] name = "helper_functions" path = "examples/helper_functions.rs" [[example]] name = "ignore_certain_values" path = "examples/ignore_certain_values.rs" [[example]] name = "ignore_generics" path = "examples/ignore_generics.rs" [[example]] name = "ownership_based_accounting" path = "examples/ownership_based_accounting.rs" [[test]] name = "mod" path = "tests/mod.rs" [dependencies.get-size-derive2] version = "0.1.2" optional = true [dev-dependencies] [features] default = [] derive = ["get-size-derive2"] [lints.clippy.cast_possible_truncation] level = "allow" priority = 5 [lints.clippy.cast_precision_loss] level = "allow" priority = 4 [lints.clippy.cast_sign_loss] level = "allow" priority = 6 [lints.clippy.enum_glob_use] level = "deny" priority = 2 [lints.clippy.implicit_hasher] level = "allow" priority = 13 [lints.clippy.module_name_repetitions] level = "allow" priority = 3 [lints.clippy.needless_doctest_main] level = "allow" priority = 12 [lints.clippy.out_of_bounds_indexing] level = "allow" priority = 7 [lints.clippy.pedantic] level = "deny" priority = 1 [lints.clippy.perf] level = "warn" priority = 8 [lints.clippy.style] level = "warn" priority = 9 [lints.rust] unsafe_code = "forbid"