Repository navigation
Contributing
Geekstrange edited this page Aug 31, 2026
·
1 revision
Thank you for your interest in contributing to Deeprotection!
- Rust toolchain (latest stable)
- Git
# Clone the repository
git clone https://github.com/Geekstrange/Deeprotection.git
cd Deeprotection
# Debug build
cargo build
# Release build
cargo build --release# Type-check without building
cargo check
# Run clippy lints
cargo clippy
# Format code
cargo fmtsrc/
├── builtins/ # 50+ built-in command implementations
├── config/ # TOML configuration deserialization
├── executor/ # fork/execve, pipelines, expansion
├── interactive/ # Reedline editor, highlighter, hinter, completers
├── jobs/ # POSIX job control
├── logging/ # JSONL audit logger
├── parser/ # Recursive-descent parser, AST, expansion
├── security/ # Rules, plugins, path protection
├── shell/ # Shell state
├── main.rs # REPL loop, script mode, login shell
└── utils.rs # Prompt generation, startup animation
-
No
sh -cinvocations — all execution must go through the AST andfork/execve - Security checks at two points — pre-fork (AST) and post-expansion (concrete paths)
- Built-ins dispatched before security pipeline — they run in-process
-
Match existing code style — use
cargo fmt -
No automated test suite currently — verify changes against
posix_test.sh(14 tests)
- Fork the repository
- Create a feature branch
- Make your changes
- Run
cargo fmtandcargo clippy - Submit a pull request
Report bugs and propose new features via the GitHub Issues page.
This project is licensed under the Mozilla Public License Version 2.0 (MPL 2.0).