#across #data #consistent #filenames #different #temporary #generate

temp_file_name

generate temporary filenames and paths from a hash of arbitrary data so that they are consistent across different crates

1 unstable release

0.1.0 Oct 23, 2020

#1470 in Filesystem

Download history 3/week @ 2023-11-20 2/week @ 2023-12-18 9/week @ 2023-12-25 4/week @ 2024-01-08 4/week @ 2024-01-15 9/week @ 2024-02-12 9/week @ 2024-02-19 27/week @ 2024-02-26 16/week @ 2024-03-04

61 downloads per month
Used in 6 crates (5 directly)

MIT/Apache

6KB
68 lines

This is a tiny crate with one purpose: generate temporary filenames from a hash of arbitrary data so that they are consistent across different crates. Its intended purpose is to either - give a consistent name, which can -- for example -- be used to cache the expensive output of an input across runs, - or to allow a caller to know what filename a different crate will have given some abstract data. It would be trivially easy to replicate; it exists primarily to allow consistency across otherwise unrelated crates when handling data


lib.rs:

This is a tiny crate with one purpose: generate temporary filenames from a hash of arbitrary data so that they are consistent across different crates. Its intended purpose is to either

  • give a consistent name, which can -- for example -- be used to cache the expensive output of an input across runs,
  • or to allow a caller to know what filename a different crate will have given some abstract data.

It would be trivially easy to replicate; it exists primarily to allow consistency across otherwise unrelated crates when handling data

No runtime deps