platform-mem 0.3.0

Memory for linksplatform
Documentation
# 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 = "2024"
rust-version = "1.85"
name = "platform-mem"
version = "0.3.0"
authors = [
    "uselesssgoddess",
    "Linksplatform Team <linksplatformtechnologies@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Memory for linksplatform
"""
homepage = "https://github.com/linksplatform/mem-rs"
readme = "README.md"
keywords = [
    "memory",
    "linksplatform",
    "mmap",
    "allocator",
]
categories = ["memory-management"]
license = "Unlicense"
repository = "https://github.com/linksplatform/mem-rs"

[features]
async = ["tokio"]
default = []

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

[[example]]
name = "async_example"
path = "experiments/async_example.rs"
required-features = ["async"]

[[example]]
name = "readme_example1"
path = "experiments/readme_example1.rs"

[[example]]
name = "readme_example2"
path = "experiments/readme_example2.rs"

[[example]]
name = "readme_example3"
path = "experiments/readme_example3.rs"

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

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

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

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

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

[[bench]]
name = "memory_benchmarks"
path = "benches/memory_benchmarks.rs"
harness = false

[dependencies.allocator-api2]
version = "0.4"

[dependencies.memmap2]
version = "0.9"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["sync"]
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.paste]
version = "1"

[dev-dependencies.quickcheck]
version = "1"

[dev-dependencies.quickcheck_macros]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[lints.clippy]
borrow_as_ptr = "allow"
cast_possible_truncation = "allow"
doc_markdown = "allow"
explicit_iter_loop = "allow"
future_not_send = "allow"
incompatible_msrv = "allow"
io_other_error = "allow"
items_after_statements = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
ptr_as_ptr = "allow"
semicolon_if_nothing_returned = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_box_returns = "allow"
unreadable_literal = "allow"
use_debug = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "allow"

[profile.release]
lto = true
codegen-units = 1
strip = true