Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1bde26b

Browse filesBrowse files
Merge pull request #188 from gz/optional-liblzma
Make liblzma an optional dependency.
2 parents 017d9ad + 50acb3c commit 1bde26b
Copy full SHA for 1bde26b

File tree

Expand file treeCollapse file tree

3 files changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+7
-2
lines changed

‎postgresql_archive/Cargo.toml

Copy file name to clipboardExpand all lines: postgresql_archive/Cargo.toml
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async-trait = { workspace = true }
1515
flate2 = { workspace = true }
1616
futures-util = { workspace = true }
1717
hex = { workspace = true }
18-
liblzma = { workspace = true }
18+
liblzma = { workspace = true, optional = true }
1919
md-5 = { workspace = true, optional = true }
2020
num-format = { workspace = true }
2121
quick-xml = { workspace = true, features = ["serialize"], optional = true }
@@ -49,7 +49,7 @@ tokio = { workspace = true }
4949
[features]
5050
default = [
5151
"native-tls",
52-
"theseus",
52+
"theseus"
5353
]
5454
blocking = ["dep:tokio"]
5555
github = [
@@ -77,6 +77,7 @@ theseus = [
7777
]
7878
zonky = [
7979
"maven",
80+
"liblzma"
8081
]
8182

8283
[package.metadata.docs.rs]
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
mod model;
22
pub mod registry;
33
mod tar_gz_extractor;
4+
#[cfg(feature = "liblzma")]
45
mod tar_xz_extractor;
56
mod zip_extractor;
67

78
pub use model::ExtractDirectories;
89
pub use tar_gz_extractor::extract as tar_gz_extract;
10+
#[cfg(feature = "liblzma")]
911
pub use tar_xz_extractor::extract as tar_xz_extract;
1012
pub use zip_extractor::extract as zip_extract;

‎postgresql_embedded/build/bundle.rs

Copy file name to clipboardExpand all lines: postgresql_embedded/build/bundle.rs
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
1919
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");
2022
#[cfg(feature = "theseus")]
2123
let default_releases_url = postgresql_archive::configuration::theseus::URL.to_string();
2224
#[cfg(not(feature = "theseus"))]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.