sugar_path 3.0.0

Host-native lexical path manipulation with borrowed and owned-buffer APIs
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"
name = "sugar_path"
version = "3.0.0"
build = false
exclude = [
    ".agents/",
    ".cargo/",
    ".github/",
    "AGENTS.md",
    "CLAUDE.md",
    "benchmarks/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Host-native lexical path manipulation with borrowed and owned-buffer APIs"
documentation = "https://docs.rs/sugar_path"
readme = "README.md"
keywords = [
    "path",
    "path-slash",
    "relative-path",
    "normalize",
]
categories = ["filesystem"]
license = "MIT"
repository = "https://github.com/hyf0/sugar_path"

[package.metadata.docs.rs]
all-features = true

[features]
cached_current_dir = []
codspeed = ["criterion2/codspeed"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.memchr]
version = "2"

[dependencies.smallvec]
version = "1.15"

[dev-dependencies.arcstr]
version = "=1.2.0"
default-features = false

[dev-dependencies.criterion2]
version = "3"
default-features = false

[dev-dependencies.mimalloc-safe]
version = "=0.1.64"

[profile.bench]
lto = "fat"
codegen-units = 1
debug = "line-tables-only"