app_root_folder 0.1.0

Get the path to the app root folder
Documentation
  • Coverage
  • 37.5%
    3 out of 8 items documented0 out of 3 items with examples
  • Size
  • Source code size: 13.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Alirex/rs_lib_i_app_root_folder
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Alirex

App root folder


pre-commit

Allows you to get the root folder path of the app.

🤔 Why?

Why do I need this?

This can be useful when CWD (current working directory) is not enough.

And the manifest directory is different.

You can see the same thing in Python as:

  • BASE_DIR
  • ROOT_DIR

So, this can be useful, also, for projects that moving from Python (with this approach) to Rust.

This path can be used to access files from the repository, and that does not really depend on the implementation of the app.

Why do I need this library? And not implement it by myself?

Less boilerplate code. Call the function and get the result.

🛠️ Dev

Register pre-commit hooks

pre-commit install

Run pre-commit hooks

pre-commit run --all-files

Update dependencies

cargo update

Other

Maybe you will be interested in: