Skip to main content

Module contracts_lock

Module contracts_lock 

Source
Expand description

Reading and atomically writing bynk.contracts.lock (#2554): the driver’s side of CompileOptions::contracts_lock, beside crate::schema_lock and sharing its read and write.

The pure document (ContractsLock, parse, serialize) is bynk_project::contracts_lock; a build only reads the file, and bynk deploy --accept-compatible-skew is what writes it.

Constants§

LOCK_FILE
The file at the project root.

Functions§

lock_path
Where the lock lives for a project root, for messages that name the file.
read
The lock’s raw content; Ok(None) is verified absent, any other failure is an error. See crate::schema_lock::read for why the two differ.
write
Write the lock atomically; a no-op when the content is unchanged.