xconv

Crates.ioxconv
lib.rsxconv
version0.1.0
sourcesrc
created_at2024-07-17 08:12:38.467264
updated_at2024-07-17 08:12:38.467264
descriptionA high-performance batch file encoding conversion tool
homepage
repositoryhttps://github.com/atopx/xconv
max_upload_size
id1305969
size24,121
atopx (atopx)

documentation

README

xconv

Crates.io msrv License

xconv is a high-performance batch file encoding conversion tool written in Rust. It supports converting files or directories from one encoding to another, with a focus on speed and efficiency.

Features

  • Batch Conversion: Convert multiple files or entire directories at once.
  • High Performance: Utilizes Rust's concurrency features to achieve maximum performance.
  • Flexible Input and Output: Specify input and output as files or directories.
  • Easy to Use: Simple command-line interface.

Installation

You can install xconv using cargo, the Rust package manager:

cargo install xconv

Usage

xconv -i <input_path> -o <output_path> -f <source_encoding> -t <target_encoding>

Examples

Convert a Single File

xconv -i /path/to/input_file.txt -o /path/to/output_file.txt -f UTF-8 -t GBK

Convert All Files in a Directory

xconv -i /path/to/input_dir -o /path/to/output_dir -f UTF-8 -t GBK

Command-Line Options

  • -i, --input: Path to the input file or directory.

  • -o, --output: Path to the output file or directory.

  • -f, --from: Source encoding.

  • -t, --to: Target encoding.

License

xconv is licensed under the MIT license. See LICENSE for more details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Commit count: 0

cargo fmt