Crate workspacer_pin

Source

Traits§

GetVersionOfLocalDep
PinAllWildcardDependencies
PinWildcardDependencies

Functions§

fix_nested_tables
insert_local_version_if_absent
If a local path is provided but no version is present, attempts to fetch the version from the local Cargo.toml and inserts it.
is_dependencies_key
Checks if a table key ends with “dependencies”
pick_highest_version
pin_from_lock_or_warn
pin_wildcard_dependencies_in_table
Iterates over a TOML TeTable (i.e., [dependencies] or similar), and pins any wildcard dependencies found. This ensures that workspace dependencies do not remain * when building or releasing.
pin_wildcard_inline_table_dependency
pin_wildcard_string_dependency
Pins a wildcard string dependency (e.g. serde = "*") from the lockfile if its version is *. If no entry is found in the lockfile, logs a warning and leaves it as *.
pin_wildcard_table_dependency
Pins a wildcard sub-table dependency (e.g. [dependencies.somecrate] version="*", path="..."). If the dependency has a local path, uses GetVersionOfLocalDep to retrieve the version. Otherwise, falls back to the lockfile.
pin_wildcards_in_doc
replace_wildcard_version_with_local
If a local path is provided and the version is "*", fetches the local version and replaces the wildcard.

Type Aliases§

LockVersionMap