| Crates.io | chaser |
| lib.rs | chaser |
| version | 0.1.0 |
| created_at | 2025-10-27 00:25:48.472033+00 |
| updated_at | 2025-10-27 00:25:48.472033+00 |
| description | An automated file path synchronization tool that updates changed paths in configuration files in real time. |
| homepage | https://github.com/Bli-AIk/chaser |
| repository | https://github.com/Bli-AIk/chaser |
| max_upload_size | |
| id | 1902051 |
| size | 224,830 |
chaser is a lightweight file path tracker.
| English | Chinese |
|---|---|
| English Version | 简体中文 |
chaser is an automated file path synchronization tool. It solves a common pain point: when paths or files referenced in configuration files change, you always need to manually update the corresponding paths in the configuration files.
With chaser, you only need to perform simple configuration, and it will automatically monitor changes to specified paths and update related references in configuration files in real-time. It can be closed after use.
In the future, it will also support running as a daemon process.
Install Rust (if not already installed):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Clone the repository:
git clone https://github.com/Bli-AIk/chaser.git
cd chaser
Build and run:
cargo run
Basic commands:
cargo run -- add /path/to/monitorcargo run -- remove /path/to/monitorcargo run -- listcargo run -- set-lang en (or zh-cn)cargo run -- available-langConfiguration:
The configuration file is automatically created at ~/.config/chaser/config.json on first run.
Clone the repository:
git clone https://github.com/Bli-AIk/chaser.git
cd chaser
Build the project:
cargo build --release
Run tests:
cargo test
Install globally (optional):
cargo install --path .
This project uses the following crates:
| Crate | Version | Description |
|---|---|---|
| notify | 8.2.0 | Real-time file system monitoring for path change detection |
| serde | 1.0.228 | Configuration file serialization and deserialization |
| serde_json | 1.0.145 | JSON format support for configuration storage |
| serde_yaml_ng | 0.10 | YAML configuration file parsing and writing |
| toml | 0.8 | TOML format configuration file support |
| csv | 1.3 | CSV file reading and updating for tabular data |
| clap | 4.0 | Command-line interface with subcommands and options |
| dirs | 6.0 | Cross-platform system configuration directory discovery |
| anyhow | 1.0 | Simplified error handling with context and chaining |
| sys-locale | 0.3 | System language preference detection for internationalization |
| owo-colors | 4.0 | Terminal color output for enhanced user experience |
Contributions are welcome! Whether you want to fix a bug, add a feature, or improve the documentation, feel free to:
This project is licensed under either of
at your option.