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. Seecrate::schema_lock::readfor why the two differ. - write
- Write the lock atomically; a no-op when the content is unchanged.