import-modules 0.1.5

import-modules is a crate that enhances the ease of importing modules using regex patterns. It is based on the npm package require-all.
Documentation

import-modules

Description

import-modules is a crate that enhances the ease of importing modules using regex patterns. It is based on the npm package require-all.

Examples

Review the tests directory to see how to use it properly.

use import_modules::import_pub_modules;

import_pub_modules!("tests/pub_modules/", "^((?!mod\\.rs).)*$");

Authors

Change log

  • 0.1.5

    • The problem fixed: Misdeclared description in Cargo.toml.
  • 0.1.4

    • Additional documentation has been added, including the proc macros import_pub_modules, import_modules, import_scope_modules.
  • 0.1.3

    • The problem fixed: String parameters now support escaping characters with backslashes, resolving compatibility with Windows.
  • 0.1.2

    • The problem fixed: The macro import_pub_modules did not make the modules public.
    • The problem fixed: Directories are already included as modules.
  • 0.1.1

    • The problem fixed: If the last slash was not included in the directory path, it would cause an error.
  • 0.1

    • First release

License

This project is licensed under the MIT license.