Skip to content

Commit

Permalink
Merge pull request #120 from palfrey/strip-default-features
Browse files Browse the repository at this point in the history
Strip down the required features for various libraries
  • Loading branch information
palfrey authored Nov 7, 2024
2 parents 3c50af8 + 27178a2 commit 51259ef
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 213 deletions.
186 changes: 1 addition & 185 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions serial_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,37 @@ categories = ["development-tools::testing"]
keywords = ["sequential", "testing", "parallel"]

[dependencies]
once_cell = "^1.19"
parking_lot = "^0.12"
once_cell = {version="^1.19", features = ["std"], default-features = false}
parking_lot = {version="^0.12", default-features = false}
serial_test_derive = { version = "~3.1.1", path = "../serial_test_derive" }
fslock = { version = "0.2", optional = true }
fslock = { version = "0.2", optional = true, default-features = false, features = ["std"]}
document-features = { version = "0.2", optional = true }
log = { version = ">=0.4.4", optional = true }
futures = { version = "^0.3", default-features = false, features = [
"executor",
], optional = true}
scc = { version = "2"}
env_logger = {version=">=0.6.1", optional=true}
scc = { version = "2", default-features = false}
env_logger = {version=">=0.6.1", optional=true, default-features = false}

[dev-dependencies]
itertools = ">=0.10"
itertools = {version=">=0.4", default-features = false, features = ["use_std"]}

[features]
default = ["logging", "async"]

## Switches on debug logging (and requires the `log` package)
logging = ["log"]
## Switches on debug logging
logging = ["dep:log"]

## Switches on debug with env_logger. Generally only needed by internal serial_test work.
test_logging = ["logging", "env_logger", "serial_test_derive/test_logging"]
test_logging = ["logging", "dep:env_logger", "serial_test_derive/test_logging"]

## Enables async features (and requires the `futures` package)
async = ["futures", "serial_test_derive/async"]
async = ["dep:futures", "serial_test_derive/async"]

## The file_locks feature unlocks the `file_serial`/`file_parallel` macros (and requires the `fslock` package)
file_locks = ["fslock"]
## The file_locks feature unlocks the `file_serial`/`file_parallel` macros
file_locks = ["dep:fslock"]

docsrs = ["document-features"]
docsrs = ["dep:document-features"]

# docs.rs-specific configuration
[package.metadata.docs.rs]
Expand Down
10 changes: 5 additions & 5 deletions serial_test_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ categories = ["development-tools::testing"]
proc-macro = true

[dependencies]
quote = "1.0"
syn = { version="2", features=["full"] }
proc-macro2 = "1.0.60" # Because of https://github.com/dtolnay/proc-macro2/issues/356
quote = { version="1", default-features = false}
syn = { version="2", features=["full", "printing", "parsing", "clone-impls"], default-features = false}
proc-macro2 = { version="1.0.60", features = ["proc-macro"], default-features = false} # Because of https://github.com/dtolnay/proc-macro2/issues/356

[dev-dependencies]
env_logger = ">=0.6.1"
prettyplease = "0.2"
env_logger = {version=">=0.6.1", default-features = false}
prettyplease = {version="0.2", default-features = false}

[features]
default = []
Expand Down
Loading

0 comments on commit 51259ef

Please sign in to comment.