Expand description
Utility items shared between forc crates.
Re-exports§
pub use ansiterm;
pub use paste;
pub use serial_test;
Modules§
- Helpers for validating and checking names like package and organization names.
Macros§
Structs§
- A wrapper around
ForcResult
. Designed to be returned from entry points as it handles error reporting and exits with correct exit code. - A forc error type which is a wrapper around
anyhow::Error
. It enables propagation of custom exit code alongisde the original error. - A compiled regular expression for searching Unicode haystacks.
Constants§
Functions§
- Creates Renderer for printing warnings and errors.
- The location at which
forc
will checkout git repositories. - Simple function to convert kebab-case to snake_case.
- Create an advisory lock over the given path.
- Returns the user’s
.forc
directory,$HOME/.forc
by default.
Type Aliases§
- A result type for forc operations. This shouldn’t be returned from entry points, instead return
ForcCliResult
to exit with correct exit code.