From 28cd220c68e3660d9ebade113949a2346720cd04 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Mon, 23 Dec 2024 13:19:38 -0800 Subject: [PATCH] docs: add `repository` field to `Cargo.toml`s, fix #1452 (#1501) #1452 Will trigger new releases of the following: `unchanged = 'hydroflow_deploy_integration', 'variadics', 'variadics_macro', 'pusherator'` (All other crates already have changes, so would be released anyway) --- RELEASING.md | 2 +- dfir_datalog/Cargo.toml | 1 + dfir_datalog_core/Cargo.toml | 1 + dfir_lang/Cargo.toml | 1 + dfir_macro/Cargo.toml | 2 +- dfir_rs/Cargo.toml | 3 +- hydro_deploy/core/Cargo.toml | 1 + hydro_deploy/hydro_cli/Cargo.toml | 1 + .../hydroflow_deploy_integration/Cargo.toml | 1 + hydro_lang/Cargo.toml | 1 + hydro_std/Cargo.toml | 1 + .../compile-fail/send_bincode_lifetime.stderr | 31 ------------------- lattices/Cargo.toml | 1 + lattices_macro/Cargo.toml | 1 + multiplatform_test/Cargo.toml | 1 + pusherator/Cargo.toml | 1 + stageleft/Cargo.toml | 1 + stageleft_macro/Cargo.toml | 1 + stageleft_tool/Cargo.toml | 1 + variadics/Cargo.toml | 1 + variadics_macro/Cargo.toml | 1 + 21 files changed, 21 insertions(+), 34 deletions(-) delete mode 100644 hydroflow_plus/tests/compile-fail/send_bincode_lifetime.stderr diff --git a/RELEASING.md b/RELEASING.md index 52a33970afa9..45e88c0e8371 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -117,7 +117,7 @@ junk you mistakenly pushed. When adding a new crate which is published, you need to: 1. Ensure `publish = true` and other required fields (`license`, `description`, `documentation`, - etc.), are set in `my_crate/Cargo.toml` + `repository`, etc.), are set in `my_crate/Cargo.toml` https://doc.rust-lang.org/cargo/reference/publishing.html#before-publishing-a-new-crate 2. Ensure any `path` dependencies to/from `my_crate` also include `version = "^0.1.0"` (substitute correct version). diff --git a/dfir_datalog/Cargo.toml b/dfir_datalog/Cargo.toml index 974c483a3f65..4fed657538ac 100644 --- a/dfir_datalog/Cargo.toml +++ b/dfir_datalog/Cargo.toml @@ -5,6 +5,7 @@ version = "0.11.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/dfir_datalog/" +repository = "https://github.com/hydro-project/hydro" description = "Datalog proc-macro for DFIR" [lints] diff --git a/dfir_datalog_core/Cargo.toml b/dfir_datalog_core/Cargo.toml index fd9e92e6698f..a1f2f3b3ae41 100644 --- a/dfir_datalog_core/Cargo.toml +++ b/dfir_datalog_core/Cargo.toml @@ -5,6 +5,7 @@ version = "0.11.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/dfir_datalog_core/" +repository = "https://github.com/hydro-project/hydro" description = "Datalog implementation for DFIR" [lints] diff --git a/dfir_lang/Cargo.toml b/dfir_lang/Cargo.toml index d4a06f40d270..a10ce10c3968 100644 --- a/dfir_lang/Cargo.toml +++ b/dfir_lang/Cargo.toml @@ -5,6 +5,7 @@ version = "0.11.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/dfir_lang/" +repository = "https://github.com/hydro-project/hydro" description = "Hydro's Dataflow Intermediate Representation (DFIR) implementation" [lints] diff --git a/dfir_macro/Cargo.toml b/dfir_macro/Cargo.toml index 51f22794a109..290748ba5a1a 100644 --- a/dfir_macro/Cargo.toml +++ b/dfir_macro/Cargo.toml @@ -5,8 +5,8 @@ version = "0.11.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/dfir_macro/" +repository = "https://github.com/hydro-project/hydro" description = "Macro for using Hydro's Data Flow Intermediate Representation (DFIR)." - [lints] workspace = true diff --git a/dfir_rs/Cargo.toml b/dfir_rs/Cargo.toml index 60ad78e2715e..4b6655fc3874 100644 --- a/dfir_rs/Cargo.toml +++ b/dfir_rs/Cargo.toml @@ -5,7 +5,8 @@ version = "0.11.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/dfir_rs/" -description = "Hydro's low-level dataflow runtime and IR" +repository = "https://github.com/hydro-project/hydro" +description = "DFIR runtime for Rust, used by Hydro." [lints] workspace = true diff --git a/hydro_deploy/core/Cargo.toml b/hydro_deploy/core/Cargo.toml index a93ee31e7b20..3e6b7e2fe723 100644 --- a/hydro_deploy/core/Cargo.toml +++ b/hydro_deploy/core/Cargo.toml @@ -5,6 +5,7 @@ version = "0.10.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/hydro_deploy/" +repository = "https://github.com/hydro-project/hydro" description = "Hydro Deploy" [lints] diff --git a/hydro_deploy/hydro_cli/Cargo.toml b/hydro_deploy/hydro_cli/Cargo.toml index 5dcae2c98634..f1c96b1f8946 100644 --- a/hydro_deploy/hydro_cli/Cargo.toml +++ b/hydro_deploy/hydro_cli/Cargo.toml @@ -5,6 +5,7 @@ version = "0.10.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/hydro_cli/" +repository = "https://github.com/hydro-project/hydro" description = "Hydro Deploy Command Line Interface" [lints] diff --git a/hydro_deploy/hydroflow_deploy_integration/Cargo.toml b/hydro_deploy/hydroflow_deploy_integration/Cargo.toml index f87f512c81a6..ed7ce907c54a 100644 --- a/hydro_deploy/hydroflow_deploy_integration/Cargo.toml +++ b/hydro_deploy/hydroflow_deploy_integration/Cargo.toml @@ -5,6 +5,7 @@ version = "0.10.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/hydroflow_deploy_integration/" +repository = "https://github.com/hydro-project/hydro" description = "`hydro_deploy` integration for Hydroflow" [lints] diff --git a/hydro_lang/Cargo.toml b/hydro_lang/Cargo.toml index 7391223e08de..5cdd273224ca 100644 --- a/hydro_lang/Cargo.toml +++ b/hydro_lang/Cargo.toml @@ -5,6 +5,7 @@ version = "0.11.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/hydro_lang/" +repository = "https://github.com/hydro-project/hydro" description = "Choreographic programming for Hydro, built on DFIR" [lints] diff --git a/hydro_std/Cargo.toml b/hydro_std/Cargo.toml index 88e9df4924be..c676de164801 100644 --- a/hydro_std/Cargo.toml +++ b/hydro_std/Cargo.toml @@ -5,6 +5,7 @@ version = "0.11.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/hydro_plus/" +repository = "https://github.com/hydro-project/hydro" description = "Standard library of distributed systems building blocks for Hydro" [lints] diff --git a/hydroflow_plus/tests/compile-fail/send_bincode_lifetime.stderr b/hydroflow_plus/tests/compile-fail/send_bincode_lifetime.stderr deleted file mode 100644 index 30e2a9501f9c..000000000000 --- a/hydroflow_plus/tests/compile-fail/send_bincode_lifetime.stderr +++ /dev/null @@ -1,31 +0,0 @@ -error: lifetime may not live long enough - --> tests/compile-fail/send_bincode_lifetime.rs:7:5 - | -6 | fn test<'a, 'b>(p1: &Process<'a, P1>, p2: &Process<'b, P2>) { - | -- -- lifetime `'b` defined here - | | - | lifetime `'a` defined here -7 | p1.source_iter(q!(0..10)).send_bincode(p2).for_each(q!(|n| println!("{}", n))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'b` - | - = help: consider adding the following bound: `'a: 'b` - = note: requirement occurs because of the type `hydroflow_plus::Process<'_, P1>`, which makes the generic argument `'_` invariant - = note: the struct `hydroflow_plus::Process<'a, P>` is invariant over the parameter `'a` - = help: see for more information about variance - -error: lifetime may not live long enough - --> tests/compile-fail/send_bincode_lifetime.rs:7:5 - | -6 | fn test<'a, 'b>(p1: &Process<'a, P1>, p2: &Process<'b, P2>) { - | -- -- lifetime `'b` defined here - | | - | lifetime `'a` defined here -7 | p1.source_iter(q!(0..10)).send_bincode(p2).for_each(q!(|n| println!("{}", n))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a` - | - = help: consider adding the following bound: `'b: 'a` - = note: requirement occurs because of the type `hydroflow_plus::Process<'_, P2>`, which makes the generic argument `'_` invariant - = note: the struct `hydroflow_plus::Process<'a, P>` is invariant over the parameter `'a` - = help: see for more information about variance - -help: `'a` and `'b` must be the same: replace one with the other diff --git a/lattices/Cargo.toml b/lattices/Cargo.toml index 844d53d311c3..ef23fda9512a 100644 --- a/lattices/Cargo.toml +++ b/lattices/Cargo.toml @@ -5,6 +5,7 @@ version = "0.5.8" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/lattices/" +repository = "https://github.com/hydro-project/hydro" description = "Lattice data types for simplifying distributed state by providing associativity, commutativity, and idempotence." [lints] diff --git a/lattices_macro/Cargo.toml b/lattices_macro/Cargo.toml index 6a7dd5e8636b..d6d7c112a1aa 100644 --- a/lattices_macro/Cargo.toml +++ b/lattices_macro/Cargo.toml @@ -5,6 +5,7 @@ version = "0.5.7" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/lattices/" +repository = "https://github.com/hydro-project/hydro" description = "Procedural macros for the `lattices` crate." [lints] diff --git a/multiplatform_test/Cargo.toml b/multiplatform_test/Cargo.toml index 926f07804ef7..3f9a2ed95886 100644 --- a/multiplatform_test/Cargo.toml +++ b/multiplatform_test/Cargo.toml @@ -5,6 +5,7 @@ version = "0.3.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/multiplatform_test/" +repository = "https://github.com/hydro-project/hydro" description = "A simple attribute macro to combine `#[test]` and `#[wasm_bindgen_test]`" [lints] diff --git a/pusherator/Cargo.toml b/pusherator/Cargo.toml index e02eb53f0d75..ac30b9df085e 100644 --- a/pusherator/Cargo.toml +++ b/pusherator/Cargo.toml @@ -5,6 +5,7 @@ version = "0.0.9" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/pusherator/" +repository = "https://github.com/hydro-project/hydro" description = "Push-based version of Rust iterators" [lints] diff --git a/stageleft/Cargo.toml b/stageleft/Cargo.toml index 49a0ee4c9a4b..b487d33a4f47 100644 --- a/stageleft/Cargo.toml +++ b/stageleft/Cargo.toml @@ -5,6 +5,7 @@ version = "0.5.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/stageleft/" +repository = "https://github.com/hydro-project/hydro" description = "Type-safe staged programming for Rust" [lints] diff --git a/stageleft_macro/Cargo.toml b/stageleft_macro/Cargo.toml index b9f1b3fba3f7..05b986a5d01a 100644 --- a/stageleft_macro/Cargo.toml +++ b/stageleft_macro/Cargo.toml @@ -5,6 +5,7 @@ version = "0.4.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/stageleft_macro/" +repository = "https://github.com/hydro-project/hydro" description = "Helper macros for the stageleft crate" [lints] diff --git a/stageleft_tool/Cargo.toml b/stageleft_tool/Cargo.toml index cca49aa24caf..05b7ab66c0e5 100644 --- a/stageleft_tool/Cargo.toml +++ b/stageleft_tool/Cargo.toml @@ -5,6 +5,7 @@ version = "0.4.0" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/stageleft_macro/" +repository = "https://github.com/hydro-project/hydro" description = "Helper macros for the stageleft crate" [lints] diff --git a/variadics/Cargo.toml b/variadics/Cargo.toml index 0198c897ba6f..1cf2f88b84e0 100644 --- a/variadics/Cargo.toml +++ b/variadics/Cargo.toml @@ -5,6 +5,7 @@ version = "0.0.7" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/variadics/" +repository = "https://github.com/hydro-project/hydro" description = "Variadic generics on stable Rust using tuple lists" [lints] diff --git a/variadics_macro/Cargo.toml b/variadics_macro/Cargo.toml index df2ad67be93e..7eacdd74c74a 100644 --- a/variadics_macro/Cargo.toml +++ b/variadics_macro/Cargo.toml @@ -5,6 +5,7 @@ version = "0.5.5" edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/variadics/" +repository = "https://github.com/hydro-project/hydro" description = "Procedural macros for the `variadics` crate." [lib]