docs.rs failed to build machineid-rs-1.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
machineid-rs-1.2.4
MachineId for Rust - Like .Net DeviceId
This Rust package is inspired by DeviceId, a .Net package to build a unique Machine ID.
Features
- 3 Different types of hash (MD5, SHA1, SHA256)
- Different components to make the id
- Support for Windows and Linux
- No Admin privileges are required
How to use
First add this to your Cargo.toml file
[]
= "1.1.0"
Then, you need to define the builder variable with the encryption type you want.
For example, SHA256
use ;
let mut builder = new;
After that, you just need to add the components you want the id to have.
The available components are:
- System UUID
- CPU Cores
- OS Name
- Username
- Machine Name
- CPU ID
- Drive Serial (Only in windows)
For example, i will add the System UUID and CPU Cores
builder.add_system_id.add_cpu_cores;
Once you are ready, you just need to build the id with your key
let unique_id = builder.build;
Todo
- Add MAC Address
- Add Motherboard Serial
- Add File Token
- Optimize the code
It is very possible for this code to have numerous bugs so if you find one, feel free to report it