Hi,
I ran into the following problem today. I have a Cargo.toml file, linking to docs.rs as a documentation link. It looks like this:
[package]
name = "my_lib"
version = "1.0.1"
documentation = "https://docs.rs/my_lib/1.0.1/"
The problem is that - on any update - I have to keep those two version strings in sync.
Would it make sense to allow interpolation in strings in Cargo.toml? As an example
[package]
name = "my_lib"
version = "1.0.1"
documentation = "https://docs.rs/my_lib/{$package.version}/"
Iām aware that this leads down the road of Maven, but I think it is a reasonable motivating example. On the other hand, Iām not sure how pervasive that problem is otherwise.
Another option would be to hand off such a task to tools like cargo-edit, but that would lead down the road of having an ever-expanding, de facto necessary toolchain, just to keep the core of the language.