With lockfile v2 a version is not required for dependencies if the lock file only contains a single entry for a specified crate. However, without a version present, at a later stage, a dependant crate will not be found in the metadata cache which causes the dependency to be ignored completely. This commit tries to infer the version of dependant crates when the version specifier is missing from the contents of the lockfile.
12 lines
186 B
C
12 lines
186 B
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
typedef struct {
|
|
uint32_t x;
|
|
double y;
|
|
} dep_struct;
|
|
|
|
uint32_t get_x(const dep_struct *dep_struct);
|