From daa42d2d07555c6081fe1f0358391c37cfbd61ef Mon Sep 17 00:00:00 2001 From: charles Date: Tue, 12 May 2026 14:03:28 -0700 Subject: [PATCH] Update dependencies in codegen build tests Bump bytes version to 1.7 and synchronize dependencies across all generated Cargo.toml files in codegen tests. --- codegen/tests/build_generated_code.rs | 2 +- codegen/tests/test_map_build.rs | 2 +- codegen/tests/test_types_build.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codegen/tests/build_generated_code.rs b/codegen/tests/build_generated_code.rs index 661ce14..1af6b9e 100644 --- a/codegen/tests/build_generated_code.rs +++ b/codegen/tests/build_generated_code.rs @@ -58,7 +58,7 @@ fn test_generated_code_builds() { let cargo_toml_content = fs::read_to_string(&cargo_toml_path).expect("Failed to read Cargo.toml"); let updated_cargo_toml = format!( - "{}\n\nroto-codegen = {{ path = \"..\" }}\nroto-runtime = {{ path = \"../../runtime\" }}\nbytes = \"1.0\"\ntonic = \"0.12\"\ntokio-stream = \"0.1\"\n\n[workspace]\n", + "{}\n\nroto-codegen = {{ path = \"..\" }}\nroto-runtime = {{ path = \"../../runtime\" }}\nbytes = \"1.7\"\ntonic = \"0.12\"\ntokio-stream = \"0.1\"\n\n[workspace]\n", cargo_toml_content ); fs::write(cargo_toml_path, updated_cargo_toml).expect("Failed to write Cargo.toml"); diff --git a/codegen/tests/test_map_build.rs b/codegen/tests/test_map_build.rs index e7dd5b9..b442761 100644 --- a/codegen/tests/test_map_build.rs +++ b/codegen/tests/test_map_build.rs @@ -38,7 +38,7 @@ fn test_map_generated_code_builds() { let cargo_toml_content = fs::read_to_string(&cargo_toml_path).expect("Failed to read Cargo.toml"); let updated_cargo_toml = format!( - "{}\n\nroto-codegen = {{ path = \"..\" }}\nroto-runtime = {{ path = \"../../runtime\" }}\nbytes = \"1.0\"\ntonic = \"0.12\"\ntokio-stream = \"0.1\"\n\n[workspace]\n", + "{}\n\nroto-codegen = {{ path = \"..\" }}\nroto-runtime = {{ path = \"../../runtime\" }}\nbytes = \"1.7\"\ntonic = \"0.12\"\ntokio-stream = \"0.1\"\n\n[workspace]\n", cargo_toml_content ); fs::write(cargo_toml_path, updated_cargo_toml).expect("Failed to write Cargo.toml"); diff --git a/codegen/tests/test_types_build.rs b/codegen/tests/test_types_build.rs index 4bb71e2..2056965 100644 --- a/codegen/tests/test_types_build.rs +++ b/codegen/tests/test_types_build.rs @@ -38,7 +38,7 @@ fn test_types_generated_code_builds() { let cargo_toml_content = fs::read_to_string(&cargo_toml_path).expect("Failed to read Cargo.toml"); let updated_cargo_toml = format!( - "{}\n\nroto-codegen = {{ path = \"..\" }}\nroto-runtime = {{ path = \"../../runtime\" }}\n\n[workspace]\n", + "{}\n\nroto-codegen = {{ path = \"..\" }}\nroto-runtime = {{ path = \"../../runtime\" }}\nbytes = \"1.7\"\ntonic = \"0.12\"\ntokio-stream = \"0.1\"\n\n[workspace]\n", cargo_toml_content ); fs::write(cargo_toml_path, updated_cargo_toml).expect("Failed to write Cargo.toml");