Skip to content

Commit

Permalink
Make axoupdater an optional dependency (#109)
Browse files Browse the repository at this point in the history
As in title; see comment in Cargo.toml as well as #107. Basically, with
this PR, users of verusfmt _as a library_ can use `default-features =
false` to obtain a stripped down version that doesn't inlcude
`axoupdater` as a dependency.

Closes #107
  • Loading branch information
parno authored Dec 2, 2024
2 parents 6b720ca + 9ea9c5a commit ef06bbe
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 ef06bbe

Please sign in to comment.