#env-var #dotenv #direnv #cli

bin+lib rsenv

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

24 releases (11 stable)

new 3.1.0 Jan 12, 2026
2.4.1 Jan 12, 2026
1.5.0 Jul 2, 2025
1.1.1 Jan 4, 2025
0.13.2 Sep 26, 2023

#631 in Development tools

BSD-3-Clause

295KB
6K 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

~22–40MB
~520K SLoC