Skip to content

Commit

Permalink
Merge branch 'master' into josh/0.66.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty authored Oct 15, 2024
2 parents 122b143 + 9ecfb69 commit 391ab38
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 1,419 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,18 +384,6 @@ jobs:
- name: Cargo Run E2E Tests (EVM)
run: cargo run --locked --release --bin test -- --target evm --locked --no-encoding-v1

cargo-run-e2e-test-midenvm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
- uses: Swatinem/rust-cache@v2
- name: Cargo Run E2E Tests (EVM)
run: cargo run --locked --release --bin test -- --target midenvm --locked --no-encoding-v1

# TODO: Remove this upon merging std tests with the rest of the E2E tests.
cargo-test-lib-std:
runs-on: buildjet-8vcpu-ubuntu-2204
Expand Down
217 changes: 2 additions & 215 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ members = [
"swayfmt",
"test",
]
exclude = [
"examples/*",
"swayfmt/test_macros",
"forc-test/test_data"
]
exclude = ["examples/*", "swayfmt/test_macros", "forc-test/test_data"]

[workspace.package]
edition = "2021"
Expand Down Expand Up @@ -167,8 +163,6 @@ libp2p-identity = "0.2"
libtest-mimic = "0.7"
lsp-types = "0.94"
mdbook = { version = "0.4", default-features = false }
miden = "0.3"
miden-core = "0.3"
minifier = "0.3"
notify = "6.1"
notify-debouncer-mini = "0.4"
Expand Down
2 changes: 0 additions & 2 deletions forc-pkg/src/pkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1886,8 +1886,6 @@ pub fn compile(

ProgramABI::Evm(ops)
}

BuildTarget::MidenVM => ProgramABI::MidenVM(()),
};

let entries = asm_res
Expand Down
1 change: 0 additions & 1 deletion sway-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ im.workspace = true
indexmap.workspace = true
itertools.workspace = true
lazy_static.workspace = true
miden-core.workspace = true
object = { workspace = true, features = ["write"] }
parking_lot.workspace = true
pest.workspace = true
Expand Down
6 changes: 0 additions & 6 deletions sway-core/src/asm_generation/finalized_asm.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use super::instruction_set::InstructionSet;
use super::ToMidenBytecode;
use super::{
fuel::{checks, data_section::DataSection},
ProgramABI, ProgramKind,
Expand Down Expand Up @@ -78,10 +77,6 @@ impl FinalizedAsm {
})
}
}
InstructionSet::MidenVM { ops } => Ok(CompiledBytecode {
bytecode: ops.to_bytecode().into(),
named_data_section_entries_offsets: Default::default(),
}),
}
}
}
Expand Down Expand Up @@ -553,6 +548,5 @@ pub fn check_invalid_opcodes(handler: &Handler, asm: &FinalizedAsm) -> Result<()
ProgramKind::Predicate => checks::check_predicate_opcodes(handler, &ops[..]),
},
InstructionSet::Evm { ops: _ } => Ok(()),
InstructionSet::MidenVM { ops: _ } => Ok(()),
}
}
8 changes: 0 additions & 8 deletions sway-core/src/asm_generation/from_ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use super::{
fuel_asm_builder::FuelAsmBuilder,
register_sequencer::RegisterSequencer,
},
MidenVMAsmBuilder,
};
use crate::{asm_generation::ProgramKind, BuildConfig, BuildTarget};

Expand Down Expand Up @@ -57,13 +56,6 @@ pub fn compile_ir_context_to_finalized_asm(
build_config,
EvmAsmBuilder::new(kind, ir),
),
BuildTarget::MidenVM => compile(
handler,
ir,
module,
build_config,
MidenVMAsmBuilder::new(kind, ir),
),
}?;

check_invalid_opcodes(handler, &finalized_asm)?;
Expand Down
Loading

0 comments on commit 391ab38

Please sign in to comment.