File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
postgresql_embedded/build Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ async-trait = { workspace = true }
15
15
flate2 = { workspace = true }
16
16
futures-util = { workspace = true }
17
17
hex = { workspace = true }
18
- liblzma = { workspace = true }
18
+ liblzma = { workspace = true , optional = true }
19
19
md-5 = { workspace = true , optional = true }
20
20
num-format = { workspace = true }
21
21
quick-xml = { workspace = true , features = [" serialize" ], optional = true }
@@ -49,7 +49,7 @@ tokio = { workspace = true }
49
49
[features ]
50
50
default = [
51
51
" native-tls" ,
52
- " theseus" ,
52
+ " theseus"
53
53
]
54
54
blocking = [" dep:tokio" ]
55
55
github = [
@@ -77,6 +77,7 @@ theseus = [
77
77
]
78
78
zonky = [
79
79
" maven" ,
80
+ " liblzma"
80
81
]
81
82
82
83
[package .metadata .docs .rs ]
Original file line number Diff line number Diff line change 1
1
mod model;
2
2
pub mod registry;
3
3
mod tar_gz_extractor;
4
+ #[ cfg( feature = "liblzma" ) ]
4
5
mod tar_xz_extractor;
5
6
mod zip_extractor;
6
7
7
8
pub use model:: ExtractDirectories ;
8
9
pub use tar_gz_extractor:: extract as tar_gz_extract;
10
+ #[ cfg( feature = "liblzma" ) ]
9
11
pub use tar_xz_extractor:: extract as tar_xz_extract;
10
12
pub use zip_extractor:: extract as zip_extract;
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ use url::Url;
17
17
/// self-contained binary that does not require the PostgreSQL archive to be
18
18
/// downloaded at runtime.
19
19
pub ( crate ) async fn stage_postgresql_archive ( ) -> Result < ( ) > {
20
+ println ! ( "cargo:rerun-if-env-changed=POSTGRESQL_VERSION" ) ;
21
+ println ! ( "cargo:rerun-if-env-changed=POSTGRESQL_RELEASES_URL" ) ;
20
22
#[ cfg( feature = "theseus" ) ]
21
23
let default_releases_url = postgresql_archive:: configuration:: theseus:: URL . to_string ( ) ;
22
24
#[ cfg( not( feature = "theseus" ) ) ]
You can’t perform that action at this time.
0 commit comments