├── .clippy.toml ├── .github └── workflows │ ├── ci.yml │ └── docs.yml ├── .gitignore ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── src ├── base_directories.rs └── lib.rs └── test_files ├── runtime-bad ├── everywhere └── runtime.file ├── symlinks └── config │ └── .gitkeep ├── system1 ├── config │ ├── both_system_config.file │ ├── everywhere │ ├── myapp │ │ ├── default_profile │ │ │ └── system1_config.file │ │ └── system1_config.file │ └── system1_config.file └── data │ ├── both_system_data.file │ ├── everywhere │ └── system1_data.file ├── system2 ├── config │ ├── both_system_config.file │ ├── everywhere │ └── system2_config.file └── data │ ├── both_system_data.file │ ├── everywhere │ └── system2_data.file └── user ├── cache ├── everywhere └── user_cache.file ├── config ├── everywhere ├── myapp │ ├── default_profile │ │ └── user_config.file │ └── user_config.file └── user_config.file ├── data ├── everywhere └── user_data.file └── runtime └── user_runtime.file /.clippy.toml: -------------------------------------------------------------------------------- 1 | msrv = "1.60.0" 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitequark/rust-xdg/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitequark/rust-xdg/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | /Cargo.lock 3 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitequark/rust-xdg/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitequark/rust-xdg/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitequark/rust-xdg/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitequark/rust-xdg/HEAD/README.md -------------------------------------------------------------------------------- /src/base_directories.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitequark/rust-xdg/HEAD/src/base_directories.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitequark/rust-xdg/HEAD/src/lib.rs -------------------------------------------------------------------------------- /test_files/runtime-bad/everywhere: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/runtime-bad/runtime.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/symlinks/config/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system1/config/both_system_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system1/config/everywhere: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system1/config/myapp/default_profile/system1_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system1/config/myapp/system1_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system1/config/system1_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system1/data/both_system_data.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system1/data/everywhere: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system1/data/system1_data.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system2/config/both_system_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system2/config/everywhere: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system2/config/system2_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system2/data/both_system_data.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system2/data/everywhere: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/system2/data/system2_data.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/cache/everywhere: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/cache/user_cache.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/config/everywhere: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/config/myapp/default_profile/user_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/config/myapp/user_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/config/user_config.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/data/everywhere: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/data/user_data.file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/user/runtime/user_runtime.file: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------