[package]
edition = "2024"
rust-version = "1.85"
name = "path-rs"
version = "0.1.0"
authors = ["XYLEX Group"]
build = false
include = [
"src/**/*",
"examples/**/*",
"tests/**/*",
"benches/**/*",
"README.md",
"CHANGELOG.md",
"LICENSE-MIT",
"LICENSE-APACHE",
"Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform path expansion, normalization, traversal, searching, and caching"
homepage = "https://github.com/xylex-group/path-rs"
documentation = "https://docs.rs/path-rs"
readme = "README.md"
keywords = [
"path",
"filesystem",
"cross-platform",
"glob",
"cache",
]
categories = [
"filesystem",
"os",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/xylex-group/path-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
async = ["dep:tokio"]
default = [
"listing",
"search",
]
listing = ["dep:walkdir"]
persistent-cache = [
"dep:serde",
"dep:serde_json",
]
search = [
"dep:globset",
"listing",
]
unicode = ["dep:unicode-normalization"]
[lib]
name = "path_rs"
path = "src/lib.rs"
[[example]]
name = "cache"
path = "examples/cache.rs"
required-features = ["search"]
[[example]]
name = "dirs"
path = "examples/dirs.rs"
[[example]]
name = "discovery"
path = "examples/discovery.rs"
required-features = ["listing"]
[[example]]
name = "expand"
path = "examples/expand.rs"
[[example]]
name = "identity"
path = "examples/identity.rs"
[[example]]
name = "inspect"
path = "examples/inspect.rs"
[[example]]
name = "list"
path = "examples/list.rs"
required-features = ["listing"]
[[example]]
name = "match_path"
path = "examples/match_path.rs"
[[example]]
name = "normalize"
path = "examples/normalize.rs"
[[example]]
name = "persistent_cache"
path = "examples/persistent_cache.rs"
required-features = [
"search",
"persistent-cache",
]
[[example]]
name = "platform"
path = "examples/platform.rs"
[[example]]
name = "resolve"
path = "examples/resolve.rs"
[[example]]
name = "search"
path = "examples/search.rs"
required-features = ["search"]
[[example]]
name = "text_utf8"
path = "examples/text_utf8.rs"
[[test]]
name = "app_paths"
path = "tests/app_paths.rs"
[[test]]
name = "cache"
path = "tests/cache.rs"
[[test]]
name = "containment"
path = "tests/containment.rs"
[[test]]
name = "discovery"
path = "tests/discovery.rs"
required-features = ["listing"]
[[test]]
name = "edge_app_paths"
path = "tests/edge_app_paths.rs"
[[test]]
name = "edge_cache_persistent"
path = "tests/edge_cache_persistent.rs"
[[test]]
name = "edge_command_line"
path = "tests/edge_command_line.rs"
[[test]]
name = "edge_discovery"
path = "tests/edge_discovery.rs"
required-features = ["listing"]
[[test]]
name = "edge_errors_utf8"
path = "tests/edge_errors_utf8.rs"
[[test]]
name = "edge_expansion"
path = "tests/edge_expansion.rs"
[[test]]
name = "edge_identity"
path = "tests/edge_identity.rs"
[[test]]
name = "edge_integration"
path = "tests/edge_integration.rs"
required-features = ["listing"]
[[test]]
name = "edge_listing_search"
path = "tests/edge_listing_search.rs"
required-features = ["search"]
[[test]]
name = "edge_normalize_resolve"
path = "tests/edge_normalize_resolve.rs"
[[test]]
name = "edge_platform"
path = "tests/edge_platform.rs"
[[test]]
name = "expansion"
path = "tests/expansion.rs"
[[test]]
name = "identity"
path = "tests/identity.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
required-features = ["listing"]
[[test]]
name = "listing"
path = "tests/listing.rs"
required-features = ["listing"]
[[test]]
name = "normalization"
path = "tests/normalization.rs"
[[test]]
name = "platform"
path = "tests/platform.rs"
[[test]]
name = "resolution"
path = "tests/resolution.rs"
[[test]]
name = "search"
path = "tests/search.rs"
required-features = ["search"]
[[bench]]
name = "listing"
path = "benches/listing.rs"
harness = false
required-features = ["listing"]
[[bench]]
name = "normalize"
path = "benches/normalize.rs"
harness = false
[[bench]]
name = "search"
path = "benches/search.rs"
harness = false
required-features = ["search"]
[dependencies.dirs]
version = "6"
[dependencies.dunce]
version = "1"
[dependencies.globset]
version = "0.4"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"fs",
"rt",
]
optional = true
[dependencies.unicode-normalization]
version = "0.1"
optional = true
[dependencies.walkdir]
version = "2"
optional = true
[dev-dependencies.assert_fs]
version = "1"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tempfile]
version = "3"