This repository was archived by the owner on Jul 20, 2026. It is now read-only.
Releases: NTeditor/tsw
Releases · NTeditor/tsw
Release list
v0.3.2
Warning
This release note generated by Gemini.
What's New
- Enhanced Documentation: Completely revamped README.md with installation guides, configuration examples, and a compatibility list (Magisk, KernelSU Next).
- Improved Shell Discovery: Integrated the which crate to reliably locate shells in the $PATH when a full path isn't provided.
- Stricter Code Quality: Added Clippy lints to deny unwrap(), panic!(), and expect() calls, ensuring more robust error handling across the project.
- Better Logging: Refined the logging system with environment-based filtering (debug/info) and more descriptive trace messages.
Internal Improvements & Refactoring
- Macro-powered Commands: Introduced add_flag! and add_value_flag! macros in the SU binding logic to reduce boilerplate code.
- Ergonomic API: Refactored SuBinding and EnvProvider traits to use Into and owned Utf8PathBuf for cleaner call sites.
- Unit Testing: Added comprehensive tests for SuCmd to verify flag generation and environment setup.
- Clean Up: Removed legacy Termux manifest JSON files in favor of standard Cargo-based workflows.
v0.3.2-rc.3
Warning
This release note generated by DeepSeek.
Shell Path Security
- Added strict validation for shell paths in Termux environment
- Rejects empty paths and relative paths with directory components (e.g., ../bash)
- Only allows absolute paths or simple file names (e.g., bash)
Code Improvements
- Extracted command setup logic into separate setup_cmd() method for better organization
- Reduced log noise by changing flag/environment logging from INFO to DEBUG level
- Refactored environment variable handling to avoid code duplication
- Added comprehensive test for command setup with arguments and environment
Bug Fixes
- Fixed shell path validation to prevent potentially unsafe relative paths
- Improved error messages for invalid shell configurations
v0.3.2-rc.2
Warning
This release note generated by Deepseek.
-
Improved logging:
- Added debug logging for less critical operations
- Enhanced log messages with more context
- Changed default log levels (debug builds: debug, release builds: error)
- Added structured logging with instrumentation
-
Environment variables:
- Added LD_PRELOAD support with fallback to Termux library
- Improved fallback values for TERM and PREFIX
- Enhanced error messages for missing environment variables
-
Stability:
- Better exit code handling for su commands with default fallback code
- Added env_clear() before setting environment in su process
- Improved error reporting for failed process execution
-
Magisk detection:
- Updated pattern matching from "magisk" to "magisksu"
- Enhanced logging for detection process
v0.3.1
v0.3.0
v0.3.0-alpha.3
- Using config.
v0.3.0-alpha.1
New
- Use binding api
- Use master namespace