virtual-buffer 2.0.0

A cross-platform library for dealing with buffers backed by raw virtual memory
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.87.0"
name = "virtual-buffer"
version = "2.0.0"
authors = ["marc0246 <40955683+marc0246@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cross-platform library for dealing with buffers backed by raw virtual memory"
documentation = "https://docs.rs/virtual-buffer"
readme = "README.md"
keywords = [
    "virtual",
    "memory",
    "lock-free",
    "concurrent",
    "vector",
]
categories = [
    "concurrency",
    "data-structures",
    "memory-management",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vulkano-rs/virtual-buffer"

[features]
alloc = []
default = ["std"]
std = [
    "libc/std",
    "alloc",
]

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

[[test]]
name = "concurrent-vec"
path = "tests/concurrent-vec.rs"

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

[[bench]]
name = "concurrent-vec"
path = "benches/concurrent-vec.rs"

[[bench]]
name = "vec"
path = "benches/vec.rs"

[target."cfg(unix)".dependencies.libc]
version = "0.2"
default-features = false

[target."cfg(windows)".dependencies.windows-targets]
version = "0.53"

[lints.clippy]
borrow_as_ptr = "allow"
doc_markdown = "allow"
inline_always = "allow"

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

[lints.rust]
unsafe_op_in_unsafe_fn = "forbid"
unused_unsafe = "allow"