MCPcopy Index your code
hub / github.com/Stebalien/xattr

github.com/Stebalien/xattr @v1.6.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.1 ↗ · + Follow
66 symbols 126 edges 8 files 15 documented · 23% 4 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

xattr

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/

Unsupported Platforms

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.

  1. You can turn this off by disabling the default unsupported feature. If you do so, this library will fail to compile on unsupported platforms.
  2. Alternatively, you can detect unsupported platforms at runtime by checking the xattr::SUPPORTED_PLATFORM boolean.

Extension points exported contracts — how you extend this code

FileExt (Interface)
Extension trait to manipulate extended attributes on `File`-like objects. [1 implementers]
src/lib.rs

Core symbols most depended-on inside this repo

allocate_loop
called by 6
src/sys/bsd.rs
name_to_ns
called by 6
src/sys/bsd.rs
set_xattr
called by 4
src/lib.rs
path_to_c
called by 4
src/sys/bsd.rs
list_xattr
called by 3
src/lib.rs
extract_noattr
called by 3
src/util.rs
cvt
called by 2
src/sys/bsd.rs
next
called by 2
src/sys/bsd.rs

Shape

Function 47
Method 13
Class 5
Interface 1

Languages

Rust100%

Modules by API surface

src/sys/bsd.rs17 symbols
src/lib.rs15 symbols
src/sys/unsupported.rs11 symbols
src/sys/linux_macos.rs11 symbols
tests/main.rs7 symbols
src/error.rs3 symbols
src/util.rs2 symbols

For agents

$ claude mcp add xattr \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page