| Crates.io | libatasmart |
| lib.rs | libatasmart |
| version | 0.3.3 |
| created_at | 2016-02-08 17:50:26.727479+00 |
| updated_at | 2025-02-15 04:05:16.261711+00 |
| 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 | 21,472 |
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.