[package]
edition = "2021"
name = "workspace_tools"
version = "0.18.1"
authors = ["Kostiantyn Mysnyk <wandalen@obox.systems>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Reliable workspace-relative path resolution for Rust projects. Automatically finds your workspace root and provides consistent file path handling regardless of execution context. Features memory-safe secret management, configuration loading with validation, and resource discovery.
"""
homepage = "https://github.com/Wandalen/wTools/tree/master/module/core/workspace_tools"
documentation = "https://docs.rs/workspace_tools"
readme = "readme.md"
keywords = [
"workspace",
"path",
"cargo",
"secrets",
"config",
]
categories = [
"filesystem",
"development-tools",
]
license = "MIT"
repository = "https://github.com/Wandalen/wTools/tree/master/module/core/workspace_tools"
[package.metadata.docs.rs]
features = [
"serde",
"glob",
"secrets",
"secure",
"validation",
]
all-features = false
[features]
default = ["enabled"]
enabled = []
full = [
"enabled",
"serde",
"glob",
"secrets",
"secure",
"validation",
"testing",
]
glob = ["dep:glob"]
secrets = []
secure = [
"secrets",
"dep:secrecy",
"dep:zeroize",
]
serde = [
"dep:serde",
"dep:serde_json",
"dep:serde_yaml_ng",
]
testing = ["dep:tempfile"]
validation = [
"dep:jsonschema",
"dep:schemars",
]
[lib]
name = "workspace_tools"
path = "src/lib.rs"
[[example]]
name = "000_hello_workspace"
path = "examples/000_hello_workspace.rs"
[[example]]
name = "001_standard_directories"
path = "examples/001_standard_directories.rs"
[[example]]
name = "002_path_operations"
path = "examples/002_path_operations.rs"
[[example]]
name = "003_error_handling"
path = "examples/003_error_handling.rs"
[[example]]
name = "004_resource_discovery"
path = "examples/004_resource_discovery.rs"
required-features = ["glob"]
[[example]]
name = "005_secret_management"
path = "examples/005_secret_management.rs"
required-features = ["secrets"]
[[example]]
name = "006_improved_secrets_api"
path = "examples/006_improved_secrets_api.rs"
required-features = ["secrets"]
[[example]]
name = "006_testing_integration"
path = "examples/006_testing_integration.rs"
[[example]]
name = "007_real_world_cli_app"
path = "examples/007_real_world_cli_app.rs"
[[example]]
name = "008_web_service_integration"
path = "examples/008_web_service_integration.rs"
[[example]]
name = "009_advanced_patterns"
path = "examples/009_advanced_patterns.rs"
[[example]]
name = "010_cargo_and_serde_integration"
path = "examples/010_cargo_and_serde_integration.rs"
required-features = ["serde"]
[[example]]
name = "resource_discovery"
path = "examples/resource_discovery.rs"
required-features = ["glob"]
[[example]]
name = "secret_management"
path = "examples/secret_management.rs"
required-features = ["secrets"]
[[example]]
name = "workspace_basic_usage"
path = "examples/workspace_basic_usage.rs"
[[test]]
name = "backward_compatibility_validation"
path = "tests/backward_compatibility_validation.rs"
[[test]]
name = "cargo_integration_tests"
path = "tests/cargo_integration_tests.rs"
[[test]]
name = "centralized_secrets_test"
path = "tests/centralized_secrets_test.rs"
[[test]]
name = "comprehensive_test_suite"
path = "tests/comprehensive_test_suite.rs"
[[test]]
name = "config_validation_tests"
path = "tests/config_validation_tests.rs"
[[test]]
name = "corner_cases_critical"
path = "tests/corner_cases_critical.rs"
[[test]]
name = "corner_cases_parsing"
path = "tests/corner_cases_parsing.rs"
[[test]]
name = "cross_platform_compatibility_tests"
path = "tests/cross_platform_compatibility_tests.rs"
[[test]]
name = "edge_case_comprehensive_tests"
path = "tests/edge_case_comprehensive_tests.rs"
[[test]]
name = "enhanced_secret_parsing_tests"
path = "tests/enhanced_secret_parsing_tests.rs"
[[test]]
name = "error_handling_comprehensive_tests"
path = "tests/error_handling_comprehensive_tests.rs"
[[test]]
name = "feature_combination_tests"
path = "tests/feature_combination_tests.rs"
[[test]]
name = "manual_validation_task_021"
path = "tests/manual_validation_task_021.rs"
[[test]]
name = "path_normalization_tests"
path = "tests/path_normalization_tests.rs"
[[test]]
name = "path_operations_comprehensive_tests"
path = "tests/path_operations_comprehensive_tests.rs"
[[test]]
name = "reproduce_secrets_api_ux_issue"
path = "tests/reproduce_secrets_api_ux_issue.rs"
[[test]]
name = "rulebook_compliance_tests"
path = "tests/rulebook_compliance_tests.rs"
[[test]]
name = "secrecy_integration_tests"
path = "tests/secrecy_integration_tests.rs"
[[test]]
name = "secrecy_optimization_tests"
path = "tests/secrecy_optimization_tests.rs"
[[test]]
name = "secret_directory_verification_test"
path = "tests/secret_directory_verification_test.rs"
[[test]]
name = "serde_integration_tests"
path = "tests/serde_integration_tests.rs"
[[test]]
name = "task_021_comprehensive_tests"
path = "tests/task_021_comprehensive_tests.rs"
[[test]]
name = "task_021_edge_cases"
path = "tests/task_021_edge_cases.rs"
[[test]]
name = "task_022_installed_app_resolution"
path = "tests/task_022_installed_app_resolution.rs"
[[test]]
name = "test_fallback_integration"
path = "tests/test_fallback_integration.rs"
[[test]]
name = "test_new_secrets_api_methods"
path = "tests/test_new_secrets_api_methods.rs"
[[test]]
name = "testing_integration_examples"
path = "tests/testing_integration_examples.rs"
[[test]]
name = "validation_boundary_tests"
path = "tests/validation_boundary_tests.rs"
[[test]]
name = "workspace_tests"
path = "tests/workspace_tests.rs"
[dependencies.cargo_metadata]
version = "0.23.1"
[dependencies.glob]
version = "0.3.4"
optional = true
[dependencies.jsonschema]
version = "0.49.9"
optional = true
[dependencies.schemars]
version = "1.2.2"
optional = true
[dependencies.secrecy]
version = "0.10.3"
features = ["serde"]
optional = true
[dependencies.serde]
version = "^1.0.229"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "^1.0.151"
optional = true
[dependencies.serde_yaml_ng]
version = "^0.10.0"
optional = true
[dependencies.tempfile]
version = "3.27.0"
optional = true
[dependencies.toml]
version = "^1.1.4"
features = ["preserve_order"]
[dependencies.zeroize]
version = "1.9.0"
optional = true
[dev-dependencies.tempfile]
version = "3.27.0"
[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cast_precision_loss = "allow"
doc_include_without_cfg = "warn"
implicit_return = "allow"
inline_always = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
mod_module_files = "allow"
module_name_repetitions = "allow"
pub_use = "allow"
question_mark_used = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "warn"
struct_excessive_bools = "allow"
undocumented_unsafe_blocks = "deny"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe-code = "deny"
[lints.rust.future_incompatible]
level = "warn"
priority = -1
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("diagnostics_runtime_assertions", "diagnostics_compiletime_assertions", "diagnostics_memory_layout"))']