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§
- Basic
Stdout Reporter - A
Reporter
that emits some general information tostdout
- NoReporter
- A no-op
Reporter
that does nothing. - Report
Report
trace data to aReporter
.- Scope
Guard - A guard that resets the current scoped reporter to the prior scoped reporter when dropped.
- SetGlobal
Reporter Error - Returned if setting the global reporter fails.
- Solc
Compiler IoReporter - Debug Helper type that can be used to write the crate::compilers::solc::Solc SolcInput and CompilerOutput to disk if configured.
Traits§
- Reporter
- Trait representing the functions required to emit information about various steps in the compiler pipeline.
Functions§
- format_
unresolved_ imports - Creates a meaningful message for all unresolved imports
- get_
default - Executes a closure with a reference to this thread’s current reporter.
- init
- Install this
Reporter
as the global default. - set_
scoped - Sets the reporter as the scoped reporter for the duration of the lifetime of the returned DefaultGuard
- try_
init - Install this
Reporter
as the global default if one is not already set. - with_
global - Executes a closure with a reference to the
Reporter
. - with_
scoped - Sets this reporter as the scoped reporter for the duration of a closure.