I am working on an extended obsolescence flag that can decide if something already exists or will become obsolete. However, one problem remains: in the boxes there is no version information. I know that I can get the current version of Crate using some environment variable that the load will set, but this is not enough to distinguish the outdated parts of the dependencies.
I can at least get the current mailbox path through ctx.sess.local_crate_source_file (as in fhahn current PR .
Thus, the ban on obtaining the path to the file and searching and parsing Cargo.lock manually (which I consider fragile and hacky), is there a way to get the version numbers of the dependencies, and if so, how?
source share