Skip to content

Commit 86d6156

Browse files
committed
add a note to [patch.crates-io] in the workspace Cargo.toml
Add a note to the`[patch.crates-io]` located in the top-level `Cargo.toml` file that explains when this should be preferred over replicating the git-source in every dependency declaration.
1 parent 353bbb9 commit 86d6156

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ rustc-demangle = { opt-level = 3 }
8282
# production installations, but we still want useful crash reports.
8383
debug = 1
8484

85+
# Use this section only to change the source of dependencies that might
86+
# also appear as transitive dependencies of other external dependencies in
87+
# the dependency graph. For everything else (e.g. rust-postgres, rdkafka,
88+
# differential-dataflow, proptest, timely) set the `git` sourcce
89+
# direclty in each dependency entry.
8590
[patch.crates-io]
8691
# Until https://github.com/jorgecarleitao/parquet-format-rs/pull/2 is merged and released
8792
parquet-format-async-temp = { git = "https://github.com/MaterializeInc/parquet-format-rs", branch = "main" }

deny.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ allow-git = [
152152
"https://github.com/MaterializeInc/parquet-format-rs.git",
153153

154154
# Waiting on https://github.com/AltSysrq/proptest/pull/264.
155-
"https://github.com/materializeInc/proptest.git",
155+
"https://github.com/MaterializeInc/proptest.git",
156156

157157
# Dependencies that we control upstream whose official releases we don't
158158
# care about.

src/expr/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ sha-1 = "0.10.0"
4646
sha2 = "0.10.2"
4747
uncased = "0.9.6"
4848
uuid = "0.8.2"
49-
proptest = { git = "https://github.com/materializeInc/proptest.git", default-features = false, features = ["std"], optional = true }
50-
proptest-derive = { git = "https://github.com/materializeInc/proptest.git", optional = true }
49+
proptest = { git = "https://github.com/MaterializeInc/proptest.git", default-features = false, features = ["std"], optional = true }
50+
proptest-derive = { git = "https://github.com/MaterializeInc/proptest.git", optional = true }
5151

5252
[dev-dependencies]
5353
criterion = { git = "https://github.com/MaterializeInc/criterion.rs.git" }

src/repr/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ serde_json = { version = "1.0.79", features = ["arbitrary_precision"] }
4040
serde_regex = "1.1.0"
4141
smallvec = { version = "1.8.0", features = ["serde", "union"] }
4242
uuid = "0.8.2"
43-
proptest = { git = "https://github.com/materializeInc/proptest.git", default-features = false, features = ["std"], optional = true }
44-
proptest-derive = { git = "https://github.com/materializeInc/proptest.git", optional = true }
43+
proptest = { git = "https://github.com/MaterializeInc/proptest.git", default-features = false, features = ["std"], optional = true }
44+
proptest-derive = { git = "https://github.com/MaterializeInc/proptest.git", optional = true }
4545

4646
[dev-dependencies]
4747
criterion = { git = "https://github.com/MaterializeInc/criterion.rs.git" }

0 commit comments

Comments
 (0)