System-wide installation directory on Windows, Mac and Linux

⚓ Rust    📅 2025-09-02    👤 surdeus    👁️ 11      

surdeus

Warning

This post was published 91 days ago. The information described in this article may have changed.

dirs includes only user directories.

Now I need a system-wide install_dir() that returns /usr/local/share on Linux and X:/Program Files (note the driver letter; or maybe even UNC) on Windows.

6 posts - 2 participants

Read full topic

🏷️ Rust_feed