# 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 = "lightweight-mmap" version = "0.4.2" build = false include = ["src/**/*"] autobins = false autoexamples = false autotests = false autobenches = false description = "Simple memory mapping helpers for Rust, with minimal amount of code generated." readme = "README.MD" license-file = "LICENSE" repository = "https://github.com/Sewer56/lightweight-mmap" [profile.profile] lto = true codegen-units = 1 debug = 2 inherits = "release" strip = false [profile.release] lto = true codegen-units = 1 panic = "abort" strip = true [lib] name = "lightweight_mmap" path = "src/lib.rs" [dependencies.bitflags] version = "2.6.0" [dependencies.itoa] version = "1.0.8" optional = true default-features = false [dependencies.nanokit] version = "0.2.0" features = ["no-inline-concat"] optional = true [dependencies.thiserror] version = "1.0.66" [dev-dependencies.tempfile] version = "3.13.0" [features] c-exports = [] default = [ "std", "mmap", ] mmap = [] no-format = [ "dep:itoa", "dep:nanokit", ] std = [] trim-file-lengths = [] [target.'cfg(target_os = "windows")'.dependencies.windows-sys] version = "0.59.0" features = [ "Win32_Foundation", "Win32_Storage_FileSystem", "Win32_Security", "Win32_Globalization", "Win32_System_Memory", "Win32_System_SystemInformation", "Win32_System_Threading", ] [target."cfg(unix)".dependencies.errno] version = "0.3.9" [target."cfg(unix)".dependencies.libc] version = "0.2.146"