A small library for setting, getting, and listing extended attributes.
Supported Platforms: Android, Linux, MacOS, FreeBSD, and NetBSD.
API Documentation: https://docs.rs/xattr/latest/xattr/
This library includes no-op support for unsupported Unix platforms. That is, it will build on all Unix platforms but always fail on unsupported Unix platforms.
- You can turn this off by disabling the default
unsupported
feature. If you do so, this library will fail to compile on unsupported platforms. - Alternatively, you can detect unsupported platforms at runtime by checking
the
xattr::SUPPORTED_PLATFORM
boolean.