Skip to content

Commit e4a9b04

Browse files
authored
debt: remove EOF version field (#279)
EOF has been deprecated in Foundry Remove unused `serde_repr` dependency
1 parent 33ff5ea commit e4a9b04

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

crates/artifacts/solc/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ alloy-json-abi.workspace = true
2121
alloy-primitives.workspace = true
2222
semver.workspace = true
2323
serde_json.workspace = true
24-
serde_repr = "0.1"
2524
serde.workspace = true
2625
thiserror.workspace = true
2726
tracing.workspace = true

crates/artifacts/solc/src/lib.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ extern crate tracing;
99

1010
use semver::Version;
1111
use serde::{de::Visitor, Deserialize, Deserializer, Serialize, Serializer};
12-
use serde_repr::{Deserialize_repr, Serialize_repr};
1312
use std::{
1413
collections::{BTreeMap, HashSet},
1514
fmt,
@@ -272,16 +271,6 @@ pub struct Settings {
272271
/// If this key is an empty string, that refers to a global level.
273272
#[serde(default)]
274273
pub libraries: Libraries,
275-
/// Specify EOF version to produce.
276-
#[serde(default, skip_serializing_if = "Option::is_none")]
277-
pub eof_version: Option<EofVersion>,
278-
}
279-
280-
/// Available EOF versions.
281-
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize_repr, Deserialize_repr)]
282-
#[repr(u8)]
283-
pub enum EofVersion {
284-
V1 = 1,
285274
}
286275

287276
impl Settings {
@@ -562,7 +551,6 @@ impl Default for Settings {
562551
libraries: Default::default(),
563552
remappings: Default::default(),
564553
model_checker: None,
565-
eof_version: None,
566554
}
567555
.with_ast()
568556
}

crates/compilers/src/compilers/solc/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ impl CompilerSettings for SolcSettings {
297297
via_ir,
298298
debug,
299299
libraries,
300-
eof_version,
301300
},
302301
..
303302
} = self;
@@ -311,7 +310,6 @@ impl CompilerSettings for SolcSettings {
311310
&& *via_ir == other.settings.via_ir
312311
&& *debug == other.settings.debug
313312
&& *libraries == other.settings.libraries
314-
&& *eof_version == other.settings.eof_version
315313
&& output_selection.is_subset_of(&other.settings.output_selection)
316314
}
317315

0 commit comments

Comments
 (0)