platform_lp/
lib.rs

1//! # Platform-lp
2//! 
3//! A crate for easily determining the user's platform at runtime and comparision of platforms.
4//! 
5//! _Platform-lp_ is made up of an enum, [Platform](enum.Platform.html) which can be used
6//! to determine what platform a user is running, what platform other tools
7//! or binaries might be and then compare the two to find the right object
8//! for your user based on their current running platform.
9//! 
10//! Currently supports the following platforms
11//! - Win64
12//! - Win32
13//! - Linux64
14//! - Linux32
15//! - MacOS64
16//! - MacOS32
17//! 
18//! And has Partials to allow for matching only the OS and Architecture
19//! - Windows
20//! - Linux
21//! - Mac
22//! - X32
23//! - X64
24//! 
25//! ## Example
26//! ```rust
27//! use platform_lp::{ PartialPlatform, Platform, Architecture};
28//! 
29//! let the_platform = Platform::get_user_platform();
30//! 
31//! # let the_platform = Platform::Win64;
32//! 
33//! assert!(the_platform == PartialPlatform::Windows);
34//! assert!(the_platform == Architecture::X64);
35//! 
36//! ```
37
38extern crate serde;
39
40mod platform; 
41pub use platform::Platform;
42
43mod partialplatform;
44pub use partialplatform::PartialPlatform;
45
46mod architecture;
47pub use architecture::Architecture;
48
49mod serialization;