Skip to content

Commit 5040f68

Browse files
committed
use .zst as file extension instead of .zstd
Per https://datatracker.ietf.org/doc/html/rfc8478 Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent b14dae3 commit 5040f68

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/spin-python-cli/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ fn main() -> Result<()> {
2727
fn stubs_for_clippy() -> Result<()> {
2828
println!("cargo:warning=using stubbed engine and core library for static analysis purposes...");
2929

30-
let engine_path = PathBuf::from(env::var_os("OUT_DIR").unwrap()).join("engine.wasm.zstd");
30+
let engine_path = PathBuf::from(env::var_os("OUT_DIR").unwrap()).join("engine.wasm.zst");
3131

3232
if !engine_path.exists() {
3333
Encoder::new(File::create(engine_path)?, ZSTD_COMPRESSION_LEVEL)?.do_finish()?;
3434
}
3535

3636
let core_library_path =
37-
PathBuf::from(env::var_os("OUT_DIR").unwrap()).join("python-lib.tar.zstd");
37+
PathBuf::from(env::var_os("OUT_DIR").unwrap()).join("python-lib.tar.zst");
3838

3939
if !core_library_path.exists() {
4040
Builder::new(Encoder::new(
@@ -63,7 +63,7 @@ fn package_engine_and_core_library() -> Result<()> {
6363

6464
if engine_path.exists() {
6565
let copied_engine_path =
66-
PathBuf::from(env::var("OUT_DIR").unwrap()).join("engine.wasm.zstd");
66+
PathBuf::from(env::var("OUT_DIR").unwrap()).join("engine.wasm.zst");
6767

6868
let mut encoder = Encoder::new(File::create(copied_engine_path)?, ZSTD_COMPRESSION_LEVEL)?;
6969
io::copy(&mut File::open(engine_path)?, &mut encoder)?;
@@ -86,7 +86,7 @@ fn package_engine_and_core_library() -> Result<()> {
8686

8787
if core_library_path.exists() {
8888
let copied_core_library_path =
89-
PathBuf::from(env::var("OUT_DIR").unwrap()).join("python-lib.tar.zstd");
89+
PathBuf::from(env::var("OUT_DIR").unwrap()).join("python-lib.tar.zst");
9090

9191
let mut builder = Builder::new(Encoder::new(
9292
File::create(copied_core_library_path)?,

crates/spin-python-cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn main() -> Result<()> {
8181
&options.output,
8282
wizer.run(&zstd::decode_all(Cursor::new(include_bytes!(concat!(
8383
env!("OUT_DIR"),
84-
"/engine.wasm.zstd"
84+
"/engine.wasm.zst"
8585
))))?)?,
8686
)?;
8787
} else {
@@ -91,7 +91,7 @@ fn main() -> Result<()> {
9191

9292
Archive::new(Decoder::new(Cursor::new(include_bytes!(concat!(
9393
env!("OUT_DIR"),
94-
"/python-lib.tar.zstd"
94+
"/python-lib.tar.zst"
9595
))))?)
9696
.unpack(temp.path())?;
9797

0 commit comments

Comments
 (0)