Implementation Details:
Optimize detection logic by creating a thread pool for concurrent task execution. Use the third-party library "rayon" for this purpose.
a. Improve the scanning logic for individual files. When encountering a keyword, start a thread to scan the content using the regular expression rule associated with that keyword. If multiple keywords are found, start multiple threads for processing. The number of threads will be determined by user input.
b. Perform simultaneous scanning of multiple file contents. The number of threads will be determined by user input.
Add APIs and API documentation.
a. Use Axum to provide APIs.
b. Integrate Swagger with Utoipa to generate API documentation.
Implementation Details: Optimize detection logic by creating a thread pool for concurrent task execution. Use the third-party library "rayon" for this purpose.
Add APIs and API documentation.