# 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 = "shm-snapshot" version = "0.2.3" authors = ["HeroicKatora"] description = "Wrap a shm file so that the read-only partner can snapshot the file partially without explicit synchronization" keywords = [ "shm", "shared-memory", "systemfd", "listenfd", "shmfd", ] categories = [ "memory-management", "os::unix-apis", ] license = "MPL-2.0" repository = "https://github.com/HeroicKatora/shmfd" [lib] [[bin]] name = "shm-restore" required-features = ["shm-restore"] [dependencies.clap] version = "4" features = ["derive"] optional = true [dependencies.libc] version = "0.2.109" optional = true [dependencies.memfile] version = "0.2.1" optional = true [dependencies.memmap2] version = "0.9" [dependencies.shm-fd] version = "0.5" optional = true [dependencies.tempfile] version = "3.8" optional = true [dependencies.tracing] version = "0.1.40" optional = true [dependencies.tracing-subscriber] version = "0.3.1" optional = true [dev-dependencies.memfile] version = "0.3.1" [features] shm-restore = [ "libc", "memfile", "shm-fd", "shm-fd/libc", "shm-fd/std", "tempfile", "clap", ] shm-restore-tracing = [ "tracing", "tracing-subscriber", "tracing-subscriber/env-filter", "tracing-subscriber/std", ]