mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-26 15:49:58 +00:00
Our builds can be a little inconsistent, because Cargo doesn't deal well with workspaces where there are multiple crates which have different dependencies that select different features. As a workaround, copy what other big rust projects do: add a workspace_hack crate. This crate just pins down a set of dependencies and features that satisfies all of the workspace crates. The benefits are: - running `cargo build` from one of the workspace subdirectories now works without rebuilding anything. - running `cargo install` works (without rebuilding anything). - making small dependency changes is much less likely to trigger large dependency rebuilds.
23 lines
1.8 KiB
TOML
23 lines
1.8 KiB
TOML
[package]
|
|
name = "workspace_hack"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
[target.'cfg(all())'.dependencies]
|
|
libc = { version = "0.2", features = ["default", "extra_traits", "std"] }
|
|
memchr = { version = "2", features = ["default", "std", "use_std"] }
|
|
num-integer = { version = "0.1", default-features = false, features = ["std"] }
|
|
num-traits = { version = "0.2", default-features = false, features = ["std"] }
|
|
regex = { version = "1", features = ["aho-corasick", "default", "memchr", "perf", "perf-cache", "perf-dfa", "perf-inline", "perf-literal", "std", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment"] }
|
|
regex-syntax = { version = "0.6", features = ["default", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment"] }
|
|
serde = { version = "1", features = ["default", "derive", "serde_derive", "std"] }
|
|
|
|
[target.'cfg(all())'.build-dependencies]
|
|
libc = { version = "0.2", features = ["default", "extra_traits", "std"] }
|
|
memchr = { version = "2", features = ["default", "std", "use_std"] }
|
|
proc-macro2 = { version = "1", features = ["default", "proc-macro"] }
|
|
quote = { version = "1", features = ["default", "proc-macro"] }
|
|
regex = { version = "1", features = ["aho-corasick", "default", "memchr", "perf", "perf-cache", "perf-dfa", "perf-inline", "perf-literal", "std", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment"] }
|
|
regex-syntax = { version = "0.6", features = ["default", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment"] }
|
|
syn = { version = "1", features = ["clone-impls", "default", "derive", "full", "parsing", "printing", "proc-macro", "quote", "visit", "visit-mut"] }
|