Module ethers_solc::report
source · Expand description
Subscribe to events in the compiler pipeline
The reporter is the component of the crate::Project::compile()
pipeline which is
responsible for reporting on specific steps in the process.
By default, the current reporter is a noop that does nothing.
To use another report implementation, it must be set as the current reporter.
There are two methods for doing so: with_scoped
and
try_init
. with_scoped
sets the reporter for the
duration of a scope, while set_global
sets a global default report
for the entire process.
Structs
A
Reporter
that emits some general information to stdout
A no-op
Reporter
that does nothing.A guard that resets the current scoped reporter to the prior
scoped reporter when dropped.
Returned if setting the global reporter fails.
Debug Helper type that can be used to write the crate::Solc CompilerInput and
CompilerOutput to disk if configured.
Traits
Trait representing the functions required to emit information about various steps in the
compiler pipeline.
Functions
Creates a meaningful message for all unresolved imports
Executes a closure with a reference to this thread’s current reporter.
Install this
Reporter
as the global default.Sets the reporter as the scoped reporter for the duration of the lifetime
of the returned DefaultGuard
Install this
Reporter
as the global default if one is
not already set.Executes a closure with a reference to the
Reporter
.Sets this reporter as the scoped reporter for the duration of a closure.