Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add the ability to override the default temporary directory #286

Merged
merged 3 commits into from
Jul 29, 2024

Commits on Jul 26, 2024

  1. feat: add the ability to override the default temporary directory

    This adds a new `env` module with `override_temp_dir` and `temp_dir`
    functions.
    
    - `temp_dir` will defer to `std::env::temp_dir` by default unless the
    temporary directory has been overridden.
    - `override_temp_dir` allows the user to override the default temporary
    directory ONCE. Once this value has been set, it cannot be changed Care
    should be taken to ensure that the chosen directory is actually writable.
    
    This API is designed for use by the application author when the
    application may run in an environment without a reliable global
    temporary directory (e.g., Android).
    
    fixes #285
    Stebalien committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    3d67780 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. fix: address feedback

    Stebalien committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    a1b4bb5 View commit details
    Browse the repository at this point in the history
  2. doc: improve formatting

    Stebalien committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    3e2d1b9 View commit details
    Browse the repository at this point in the history