Simplifying workspace-level dependencies

Is there some way I can write this without having to repeat all those lines?

[workspace.dependencies]
#   Currently: arcanized form from March 2024
rend3 = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-egui = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-framework = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-routine = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }

libui = { version = "^0.12.2", git = "https://github.com/John-Nagle/ui-mock.git" }

range-alloc = { git = "https://github.com/gfx-rs/range-alloc.git" }

egui = { version = "^0.26" }
egui_plot = { version = "^0.26" }
egui-winit = { version = "^0.26", default-features = false, features = ["links", "wayland"] }
egui-wgpu = { version = "^0.26" }

wgpu = "^0.19"
winit = "^0.29"

[patch.crates-io]
rend3 = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-egui = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-framework = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-routine = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
range-alloc = { git = "https://github.com/gfx-rs/range-alloc.git" }

libui = { version = "^0.12.2", git = "https://github.com/John-Nagle/ui-mock.git" }

[patch."https://github.com/John-Nagle/ui-mock.git"]
rend3 = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-egui = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-framework = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }
rend3-routine = { version = "^0.3.0", git = 'https://github.com/BVE-Reborn/rend3.git', rev = "d088a84" }

range-alloc = { git = "https://github.com/gfx-rs/range-alloc.git" }

Related problem: can't get the [patch."https://github.com/John-Nagle/ui-mock.git"] section to change the version of Rend3 used by ui-mock. The version on Github is 0.12.2, so versions match and the patch should be applied. I think.

No errors from Cargo, but it uses the version of Rend3 specified at ui-mock despite the patch.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.