Refactor: Extract mod fs as crate atomic-file-install (#1286)

Refactor: Extract mod `fs` as crate `atomic-install`

To speedup codegen of `binstalk` and also publish a new crate that could
be reused.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-08-12 23:24:26 +10:00 committed by GitHub
parent 8ff13c1b36
commit ef99dd795f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 261 additions and 31 deletions

13
Cargo.lock generated
View file

@ -173,6 +173,16 @@ dependencies = [
"tokio-util",
]
[[package]]
name = "atomic-file-install"
version = "0.0.0"
dependencies = [
"reflink-copy",
"tempfile",
"tracing",
"windows 0.48.0",
]
[[package]]
name = "autocfg"
version = "1.1.0"
@ -235,6 +245,7 @@ name = "binstalk"
version = "0.15.0"
dependencies = [
"async-trait",
"atomic-file-install",
"base16",
"binstalk-downloader",
"binstalk-types",
@ -252,7 +263,6 @@ dependencies = [
"miette",
"normalize-path",
"once_cell",
"reflink-copy",
"semver",
"serde",
"serde_json",
@ -265,7 +275,6 @@ dependencies = [
"toml_edit",
"tracing",
"url",
"windows 0.48.0",
"xz2",
]