@@ -7,7 +7,9 @@ use retry::delay::NoDelay;
7
7
use retry:: { retry, OperationResult } ;
8
8
9
9
use crate :: config:: PgpPublicKey ;
10
- use crate :: dist:: component:: { Components , Package , TarGzPackage , TarXzPackage , Transaction } ;
10
+ use crate :: dist:: component:: {
11
+ Components , Package , TarGzPackage , TarXzPackage , TarZStdPackage , Transaction ,
12
+ } ;
11
13
use crate :: dist:: config:: Config ;
12
14
use crate :: dist:: dist:: { Profile , TargetTriple , DEFAULT_DIST_SERVER } ;
13
15
use crate :: dist:: download:: { DownloadCfg , File } ;
@@ -238,6 +240,7 @@ impl Manifestation {
238
240
} ;
239
241
let gz;
240
242
let xz;
243
+ let zst;
241
244
let reader =
242
245
utils:: FileReaderWithProgress :: new_file ( & installer_file, & notification_converter) ?;
243
246
let package: & dyn Package = match format {
@@ -249,6 +252,10 @@ impl Manifestation {
249
252
xz = TarXzPackage :: new ( reader, temp_cfg, Some ( & notification_converter) ) ?;
250
253
& xz
251
254
}
255
+ CompressionKind :: ZStd => {
256
+ zst = TarZStdPackage :: new ( reader, temp_cfg, Some ( & notification_converter) ) ?;
257
+ & zst
258
+ }
252
259
} ;
253
260
254
261
// If the package doesn't contain the component that the
0 commit comments