#env-var #dotenv #direnv #cli

bin+lib rsenv

Unified development environment manager: hierarchical env vars, file guarding, and swap-in/out

30 releases (17 stable)

5.1.2 Jan 24, 2026
4.0.2 Jan 15, 2026
3.1.0 Jan 12, 2026
2.4.1 Jan 12, 2026
0.13.2 Sep 26, 2023

#639 in Development tools

BSD-3-Clause

335KB
7K SLoC

rsenv: Unified development environment manager

This library provides the core functionality for rsenv, consolidating:

  • Hierarchical environment variable management (rsenv v1)
  • File guarding with symlinks (confguard)
  • File swap-in/out (rplc)

Architecture

The crate follows clean architecture with layered error types:

  • domain: Core entities and business rules
  • application: Services orchestrating domain logic
  • infrastructure: I/O implementations and DI container
  • cli: Command-line interface

Example

use rsenv::config::Settings;
use rsenv::infrastructure::di::ServiceContainer;

let settings = Settings::load(None).unwrap();
let container = ServiceContainer::new(settings);

Dependencies

~23–42MB
~562K SLoC