Skip to content

Commit

Permalink
feat(sys): make deps required for building Nginx optional
Browse files Browse the repository at this point in the history
These dependencies are not necessary when using a prebuilt Nginx tree.
  • Loading branch information
bavshin-f5 committed Mar 6, 2024
1 parent 4d72542 commit 2dbbb9c
Show file tree
Hide file tree
Showing 4 changed files with 620 additions and 603 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ keywords = ["nginx", "module", "sys"]
[dependencies]
nginx-sys = { path = "nginx-sys", version = "0.5.0"}

[features]
default = ["nginx-sys/vendored"]

[badges]
maintenance = { status = "experimental" }
13 changes: 8 additions & 5 deletions nginx-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ crate-type = ["staticlib", "rlib"]

[build-dependencies]
bindgen = "0.69.4"
which = "6.0.0"
duct = "0.13.7"
ureq = { version = "2.9.6", features = ["tls"] }
flate2 = "1.0.28"
tar = "0.4.40"
duct = { version = "0.13.7", optional = true }
flate2 = { version = "1.0.28", optional = true }
tar = { version = "0.4.40", optional = true }
ureq = { version = "2.9.6", features = ["tls"], optional = true }
which = { version = "6.0.0", optional = true }

[features]
vendored = ["dep:which", "dep:duct", "dep:ureq", "dep:flate2", "dep:tar"]
Loading

0 comments on commit 2dbbb9c

Please sign in to comment.