#android #procfs #linux #epoll #inotify

coreshift-core

Low-level Linux and Android systems primitives for CoreShift

1 stable release

Uses new Rust 2024

new 1.0.0 Jun 5, 2026

#10 in Unix APIs

MPL-2.0 license

185KB
4.5K SLoC

CoreShift Core is the low-level Linux and Android foundation crate for the CoreShift ecosystem.

CoreShift Core keeps direct kernel, libc, and procfs interaction in one place so higher layers can stay policy-oriented:

  • CoreShift Core: low-level Linux and Android primitives
  • CoreShift Engine: daemon and plugin runtime
  • CoreShift Policy: policy logic and product behavior

This crate is intentionally policy-neutral. It provides mechanisms such as spawning, epoll, inotify, procfs inspection, and signal helpers. It does not make daemon lifecycle or product decisions for callers.

Core Guarantees

Core adheres to strict architectural invariants to ensure stability:

  • No policy: Primitives only; no allowlists, retry plans, or fallbacks.
  • No hidden threads: Work is performed on the caller's thread.
  • No global state: Stateless execution; no global mutable configuration.
  • No scheduler: Provides reactor primitives but does not own execution.

Public primitive modules:

use coreshift_core::Daemon;
use coreshift_core::ForegroundResolver;

CoreShift Core

CoreShift Core is the low-level Linux/Android primitives crate at the bottom of the CoreShift stack.

Policy / product behavior
        ↓
Engine coordination
        ↓
Core syscall and filesystem primitives

Core exposes explicit wrappers for process spawning, file descriptor handling, procfs parsing, signals, reactor primitives, inotify, Unix sockets, and filesystem preload helpers. It does not choose Android policy, foreground app behavior, package discovery, daemon protocols, or preload rules.

Documentation

Release Dependency

[dependencies]
coreshift-core = "1.0.0"

License

Mozilla Public License 2.0. See LICENSE.

Dependencies