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 }
1515flate2 = { workspace = true }
1616futures-util = { workspace = true }
1717hex = { workspace = true }
18- liblzma = { workspace = true }
18+ liblzma = { workspace = true , optional = true }
1919md-5 = { workspace = true , optional = true }
2020num-format = { workspace = true }
2121quick-xml = { workspace = true , features = [" serialize" ], optional = true }
@@ -49,7 +49,7 @@ tokio = { workspace = true }
4949[features ]
5050default = [
5151 " native-tls" ,
52- " theseus" ,
52+ " theseus"
5353]
5454blocking = [" dep:tokio" ]
5555github = [
@@ -77,6 +77,7 @@ theseus = [
7777]
7878zonky = [
7979 " maven" ,
80+ " liblzma"
8081]
8182
8283[package .metadata .docs .rs ]
Original file line number Diff line number Diff line change 11mod model;
22pub mod registry;
33mod tar_gz_extractor;
4+ #[ cfg( feature = "liblzma" ) ]
45mod tar_xz_extractor;
56mod zip_extractor;
67
78pub use model:: ExtractDirectories ;
89pub use tar_gz_extractor:: extract as tar_gz_extract;
10+ #[ cfg( feature = "liblzma" ) ]
911pub use tar_xz_extractor:: extract as tar_xz_extract;
1012pub use zip_extractor:: extract as zip_extract;
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ use url::Url;
1717/// self-contained binary that does not require the PostgreSQL archive to be
1818/// downloaded at runtime.
1919pub ( 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" ) ;
2022 #[ cfg( feature = "theseus" ) ]
2123 let default_releases_url = postgresql_archive:: configuration:: theseus:: URL . to_string ( ) ;
2224 #[ cfg( not( feature = "theseus" ) ) ]
You can’t perform that action at this time.
0 commit comments