Use low fidelity Ast by default

rebase
This commit is contained in:
franfran 2022-12-29 16:56:12 +01:00 committed by francois
parent f7ea831d7c
commit 29510ed8e4
1 changed files with 7 additions and 6 deletions

View File

@ -16,8 +16,9 @@ use crate::{
BytecodeOutputSelection, ContractOutputSelection, EvmOutputSelection,
EwasmOutputSelection,
},
CompactContractBytecodeCow, DevDoc, Evm, Ewasm, FunctionDebugData, GasEstimates,
GeneratedSource, LosslessAbi, LosslessMetadata, Metadata, Offsets, Settings, SourceUnit,
Ast, CompactContractBytecodeCow, DevDoc, Evm, Ewasm, FunctionDebugData, GasEstimates,
GeneratedSource, LosslessAbi, LosslessMetadata, Metadata, Offsets,
Settings, /*SourceUnit,*/
StorageLayout, UserDoc,
},
sources::VersionedSourceFile,
@ -68,7 +69,7 @@ pub struct ConfigurableContractArtifact {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub ewasm: Option<Ewasm>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub ast: Option<SourceUnit>,
pub ast: Option<Ast>,
/// The identifier of the source file
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<u32>,
@ -152,7 +153,7 @@ pub struct ConfigurableArtifacts {
/// _always_ be done using a public constructor or update syntax:
///
/// ```rust
///
///
/// use ethers_solc::{ExtraOutputFiles, ConfigurableArtifacts};
/// let config = ConfigurableArtifacts {
/// additional_files: ExtraOutputFiles { metadata: true, ..Default::default() },
@ -395,7 +396,7 @@ pub struct ExtraOutputValues {
/// _always_ be done using a public constructor or update syntax:
///
/// ```rust
///
///
/// use ethers_solc::ExtraOutputValues;
/// let config = ExtraOutputValues {
/// ir: true,
@ -513,7 +514,7 @@ pub struct ExtraOutputFiles {
/// _always_ be done using a public constructor or update syntax:
///
/// ```rust
///
///
/// use ethers_solc::ExtraOutputFiles;
/// let config = ExtraOutputFiles {
/// metadata: true,