pub async fn lock(
at: Option<impl AsRef<Path>>,
manifest: impl AsRef<str>,
lock: Option<impl AsRef<str>>,
deps: impl AsRef<Path>,
) -> Result<Option<String>>
Expand description
Given a TOML-encoded manifest and optional TOML-encoded lock, ensures that the path pointed to by
deps
is in sync with the manifest and lock. This is a potentially destructive operation!
Returns a TOML-encoded lock if the lock passed to this function was either None
or out-of-sync.
§Errors
Returns an error if anything in the pipeline fails