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

Make liblzma an optional dependency. #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions 5 postgresql_archive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async-trait = { workspace = true }
flate2 = { workspace = true }
futures-util = { workspace = true }
hex = { workspace = true }
liblzma = { workspace = true }
liblzma = { workspace = true, optional = true }
md-5 = { workspace = true, optional = true }
num-format = { workspace = true }
quick-xml = { workspace = true, features = ["serialize"], optional = true }
Expand Down Expand Up @@ -49,7 +49,7 @@ tokio = { workspace = true }
[features]
default = [
"native-tls",
"theseus",
"theseus"
]
blocking = ["dep:tokio"]
github = [
Expand Down Expand Up @@ -77,6 +77,7 @@ theseus = [
]
zonky = [
"maven",
"liblzma"
]

[package.metadata.docs.rs]
Expand Down
2 changes: 2 additions & 0 deletions 2 postgresql_archive/src/extractor/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
mod model;
pub mod registry;
mod tar_gz_extractor;
#[cfg(feature = "liblzma")]
mod tar_xz_extractor;
mod zip_extractor;

pub use model::ExtractDirectories;
pub use tar_gz_extractor::extract as tar_gz_extract;
#[cfg(feature = "liblzma")]
pub use tar_xz_extractor::extract as tar_xz_extract;
pub use zip_extractor::extract as zip_extract;
2 changes: 2 additions & 0 deletions 2 postgresql_embedded/build/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ use url::Url;
/// self-contained binary that does not require the PostgreSQL archive to be
/// downloaded at runtime.
pub(crate) async fn stage_postgresql_archive() -> Result<()> {
println!("cargo:rerun-if-env-changed=POSTGRESQL_VERSION");
println!("cargo:rerun-if-env-changed=POSTGRESQL_RELEASES_URL");
#[cfg(feature = "theseus")]
let default_releases_url = postgresql_archive::configuration::theseus::URL.to_string();
#[cfg(not(feature = "theseus"))]
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.