Registry / utility / steamlocate

steamlocate

JSON →
library2.1.0rscratesunverified

Crate for locating Steam game installation directories (and Steam itself!).

# Cargo.toml [dependencies] steamlocate = "2.1.0"
INSTALL
IMPORT
SIG · STEAMLOCATE
S
steamlocate
utilityrustv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SteamDir
use steamlocate::SteamDir;

Locates the Steam installation directory.

use steamlocate::SteamDir; fn main() -> Result<(), Box<dyn std::error::Error>> { let steam_dir = SteamDir::locate()?; println!("Steam found at: {:?}", steam_dir.path()); Ok(()) }
Debug
Known issues
gotchaOnly works on Windows and Linux
fix
Check platform support before using; macOS may require additional setup.
affects: >=2.0.0
Upgrade
Version history
2.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
steamlocate — cargo add steamlocate · libregistry