Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

Releases: NTeditor/tsw

v0.3.2

Choose a tag to compare

@NTeditor NTeditor released this 27 Jan 15:59

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

v0.3.2-rc.3 Pre-release
Pre-release

Choose a tag to compare

@NTeditor NTeditor released this 21 Jan 20:50

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

v0.3.2-rc.2 Pre-release
Pre-release

Choose a tag to compare

@NTeditor NTeditor released this 17 Jan 08:54

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

Choose a tag to compare

@NTeditor NTeditor released this 12 Dec 17:54

Релиз v0.3.1

Important

Deb-пакеты больше не публикуются в этом репозитории.

  • Исправлен баг: Добавлен вызов envs() у Command.

v0.3.0

Choose a tag to compare

@NTeditor NTeditor released this 03 Dec 21:09
  • Use binding api
  • Use master namespace
  • Using config
  • Using tracing
  • Add KernelSU support

v0.3.0-alpha.3

v0.3.0-alpha.3 Pre-release
Pre-release

Choose a tag to compare

@NTeditor NTeditor released this 22 Nov 21:42
  • Using config.

v0.3.0-alpha.1

v0.3.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@NTeditor NTeditor released this 21 Nov 19:00

New

  • Use binding api
  • Use master namespace

v0.2.1

Choose a tag to compare

@NTeditor NTeditor released this 29 Oct 12:23
  • fix command mode

v0.2.0

Choose a tag to compare

@NTeditor NTeditor released this 29 Oct 00:56
  • Refactor code.
  • Add help.