Add a binaries feature to the processor to reduce dependencies when used as a lib

processor isn't intended to be used as a library, yet serai-processor-tests
does pull it in as a lib. This caused serai-processor-tests to need to compile
rocksdb, which added multiple minutes to the compilation time.
This commit is contained in:
Luke Parker
2023-11-25 04:02:47 -05:00
parent b296be8515
commit d60e007126
11 changed files with 23 additions and 26 deletions

View File

@@ -26,7 +26,7 @@ serai-primitives = { path = "../../primitives", default-features = false }
sp-runtime = { git = "https://github.com/serai-dex/substrate", default-features = false }
[features]
std = ["zeroize", "borsh?/std", "serde/std", "scale/std", "scale-info/std", "sp-runtime/std", "serai-primitives/std"]
std = ["zeroize", "borsh?/std", "serde?/std", "scale/std", "scale-info/std", "sp-runtime/std", "serai-primitives/std"]
borsh = ["dep:borsh", "serai-primitives/borsh"]
serde = ["dep:serde", "serai-primitives/serde"]
default = ["std"]