Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Stebalien/tempfile
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.9.0
Choose a base ref
...
head repository: Stebalien/tempfile
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.10.0
Choose a head ref
  • 4 commits
  • 12 files changed
  • 2 contributors

Commits on Jan 31, 2024

  1. Configuration menu
    Copy the full SHA
    184ab8f View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. feat: Add Builder::permissions() method. (#273)

    * feat: Add `Builder::permissions()` method.
    
    With it it's possible to change the default mode of tempfiles on
    unix systems.
    
    The example also doesn't hide the fact that it is currently only
    useful on Unix, but as the ecosystem matures, thanks to the usage
    of `std::fs::Permissions` it should be able grow into more platforms
    over time.
    
    * Use `permissions` field of `Builder` on Unix to affect file mode
    
    The implementation favors the least invasive solution even though
    its forced to pull platform dependent code up.
    
    The alternative would have been to alter the method signatures
    of `create_named()` on all platforms.
    
    * Respect module boundaries and make all platforms permissions aware.
    
    This way, permissions can be passed and handled by platform specific
    code, which avoid having to use platform dependent code in the top-level.
    
    * Fail on Windows if somebody tries to set permissions there.
    
    That way, there will be no surprises as would be the case with
    doing nothing.
    
    * Add support for setting permissions on directories as well.
    Byron authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    4a05e47 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e246c4a View commit details
    Browse the repository at this point in the history
  3. chore: release v3.10.0

    Stebalien committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    61531ea View commit details
    Browse the repository at this point in the history
Loading