linux-stat

Crates.iolinux-stat
lib.rslinux-stat
version0.3.3
sourcesrc
created_at2023-06-26 14:10:47.64072
updated_at2023-07-23 03:44:30.021166
descriptionA pure Rust library that implements stat functions on linux with only syscalls.
homepagehttps://github.com/shurizzle/linux-stat
repositoryhttps://github.com/shurizzle/linux-stat
max_upload_size
id900363
size145,369
shurizzle (shurizzle)

documentation

https://docs.rs/linux-stat

README

linux-stat

GitHub Workflow Status (with branch) Crates.io docs.rs Crates.io

A pure Rust library that implements stat functions on linux with only syscalls.

tl;dr

It tries to use statx syscall and fallback to fstatat.

Feature flags

  • std: enable std support.
  • linux_4_11: assume that kernel is at least 4.11.0 so statx is used.

#![no_std]

Enable #![no_std] support by disabling the default std feature:

[dependencies]
linux-stat = { version = "*", default-features = false }

Platforms

  • aarch64
  • arm
  • mips
  • mips64
  • mips64el
  • mipsel
  • powerpc
  • powerpc64
  • powerpc64el
  • riscv64
  • s390x
  • x86
  • x86_64
  • loongarch64

MSRV

1.46.0

Commit count: 51

cargo fmt