pathrs 0.2.3

C-friendly API to make path resolution safer on Linux.
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 = "2021"
rust-version = "1.63"
name = "pathrs"
version = "0.2.3"
authors = ["Aleksa Sarai <cyphar@cyphar.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "C-friendly API to make path resolution safer on Linux."
readme = "README.md"
keywords = [
    "file",
    "fs",
    "security",
    "linux",
]
categories = ["filesystem"]
license = "MPL-2.0 OR LGPL-3.0-or-later"
repository = "https://github.com/cyphar/libpathrs"

[badges.maintenance]
status = "experimental"

[features]
_test_as_root = []
_test_race = []
capi = [
    "dep:bytemuck",
    "bitflags/bytemuck",
    "dep:rand",
    "dep:open-enum",
]
default = []

[lib]
name = "pathrs"
crate-type = ["rlib"]
path = "src/lib.rs"

[[example]]
name = "rust-cat"
path = "examples/rust-cat/main.rs"

[dependencies.bitflags]
version = "2.2"

[dependencies.bytemuck]
version = "1"
features = [
    "extern_crate_std",
    "derive",
]
optional = true

[dependencies.itertools]
version = "0.14"

[dependencies.libc]
version = "0.2.178"

[dependencies.memchr]
version = "2"

[dependencies.once_cell]
version = "1"

[dependencies.open-enum]
version = "0.3"
optional = true

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.rustix]
version = "1.1"
features = [
    "fs",
    "process",
    "thread",
    "mount",
]

[dependencies.rustversion]
version = "1"

[dependencies.static_assertions]
version = "1.1"

[dependencies.thiserror]
version = "2"

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

[dev-dependencies.clap]
version = "3"
features = ["cargo"]

[dev-dependencies.errno]
version = "0.3"

[dev-dependencies.indoc]
version = "2"

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

[dev-dependencies.path-clean]
version = "1"

[dev-dependencies.pretty_assertions]
version = "1.4.1"
features = ["unstable"]

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.tempfile]
version = "3"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(coverage)",
    "cfg(cdylib)",
    "cfg(staticlib)",
    "cfg(nextest)",
]

[profile.release]
lto = true