Crates.io | libatasmart |
lib.rs | libatasmart |
version | 0.3.1 |
source | src |
created_at | 2016-02-08 17:50:26.727479 |
updated_at | 2023-01-25 18:22:26.229586 |
description | A wrapper around libatasmart-sys raw bindings. |
homepage | https://github.com/cholcombe973/libatasmart |
repository | https://github.com/cholcombe973/libatasmart |
max_upload_size | |
id | 4126 |
size | 18,724 |
Rust friendly interface for libatasmart-sys
Using libatasmart might require some compiling. If you're using ubuntu you can install libatasmart-dev and that should be sufficient. Otherwise head on over to http://git.0pointer.net/libatasmart.git/ and pull down the latest copy of the code. Follow the readme instructions in there to get yourself a libatasmart shared library installed. From there this code should work fine.
The backing C library for this code was written roughly 14yrs ago and hasn't really been updated since. If anyone is interested I think it would be worth rewriting this wrapper interface to parse the data blobs given back by the hard drives directly and then just remove the C dependency all together.