Skip to content

Commit

Permalink
Make axoupdater an optional dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybosamiya committed Dec 1, 2024
1 parent 223a22a commit b494651
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exclude = [
]

[dependencies]
axoupdater = { version = "0.7.2", features = ["blocking", "github_releases"], default-features = false }
axoupdater = { version = "0.7.2", features = ["blocking", "github_releases"], default-features = false, optional = true }
clap = { version = "4.3.11", features = ["derive"] }
fs-err = "3.0.0"
miette = { version = "7.2.0", features = ["fancy"] }
Expand All @@ -39,6 +39,13 @@ similar = { version = "2.2.1" }
stacker = "0.1.15"
glob-macro = { path = "glob-macro" }

[features]
# We enable the "optional" dependencies, that are only necessary for the binary,
# as default-enabled features. If verusfmt is being used as a library, then that
# program can turn default features off in order to obtain a more stripped-down
# version of the library.
default = ["axoupdater"]

# Spend more time on initial compilation in exchange for faster runs
[profile.dev.package.insta]
opt-level = 3
Expand Down

0 comments on commit b494651

Please sign in to comment.