#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

#21 in #filenames

44 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