Commit Graph

919 Commits

Author SHA1 Message Date
Paweł Bylica 64830936e0
changelog: Add entry about moving API for evmc::vm 2019-07-03 19:37:17 +02:00
Paweł Bylica e1ff8cb007
cpp: Add unit test for evmc::vm move to itself 2019-07-03 19:37:17 +02:00
Paweł Bylica 1f3243a55e
cpp: Allow checking if evmc::vm is valid 2019-07-03 19:37:16 +02:00
Paweł Bylica fff439a53b
cpp: Allow moving evmc::vm 2019-07-03 19:37:16 +02:00
Alex Beregszaszi bc551318e0
Merge pull request #342 from ethereum/rust-bindgen
rust: support ParitalEq, Default, Hash on certain ffi types
2019-07-03 18:29:04 +01:00
Alex Beregszaszi 98ad72ecd9 rust: implement Default for evmc_address/evmc_bytes32
Same as with PartialEq: this may be done via bindgen in the future.
2019-07-03 18:07:22 +01:00
Alex Beregszaszi b52a3dc81b rust: derive Hash trait for ffi data types 2019-07-03 18:07:22 +01:00
Alex Beregszaszi c1e8a897b6 rust: implement PartialEq for evmc_address/evmc_bytes32
Could also force deriving in bindgen with (derive_partialeq(true)),
but that would insert it for complex structures we don't want it for,
such evmc_message and blacklisthing those is tedious and error prone
in case EVMC introduces new structures.
2019-07-03 18:07:16 +01:00
Alex Beregszaszi 50821813cb
Merge pull request #340 from ethereum/rust-result-ref
rust: pass output as slice reference in ExecutionResult
2019-07-03 16:02:26 +01:00
Alex Beregszaszi 593ef3b6ac rust: expect output as slice in ExecutionResult 2019-07-03 15:56:40 +01:00
Alex Beregszaszi 87ad703e62 rust: pass output as reference in ExecutionResult 2019-07-03 15:56:32 +01:00
Alex Beregszaszi 32ceee35dd
Merge pull request #339 from ethereum/rust-ref
rust: make allocate_output_data operate on references
2019-07-03 12:19:46 +01:00
Alex Beregszaszi b4c585f9bd rust: make allocate_output_data operate on references 2019-07-03 12:16:04 +01:00
Alex Beregszaszi 9794d7c2f7
Merge pull request #337 from ethereum/circleci-rust
circleci: remove duplicated tasks from ASan in Rust
2019-06-27 13:24:11 +01:00
Alex Beregszaszi 17d92d4347 circleci: remove duplicated tasks from ASan in Rust 2019-06-27 13:20:18 +01:00
Paweł Bylica f905aa8f98
Merge pull request #327 from ethereum/32-bit
Add support for 32-bit architectures
2019-06-27 14:14:49 +02:00
Paweł Bylica 4a8de9e117
changelog: Add entry about added 32-bit architecture support 2019-06-27 14:02:35 +02:00
Paweł Bylica 5af66f2b4d
ci: Add 32-bit build on linux 2019-06-27 14:02:07 +02:00
Paweł Bylica 10a7e30c57
ci: Add 32-bit build with Visual Studio 2019-06-27 14:02:06 +02:00
Paweł Bylica 4381f339d4
test: Rework tests for 32-bit architectures support 2019-06-27 14:02:06 +02:00
Paweł Bylica 52689e049e
helpers: Extend fnv1a implementation to support 32-bit architectures 2019-06-27 14:02:05 +02:00
Paweł Bylica a6a98d19b1
Merge pull request #313 from ethereum/loader_config
loader: Standarize EVMC module config
2019-06-27 14:00:11 +02:00
Paweł Bylica 7e81a13161
changelog: Add entry about evmc_load_and_configure() 2019-06-27 13:52:29 +02:00
Paweł Bylica fb471ef3e7
loader: Standardize configuration syntax and add evmc_load_and_configure() 2019-06-27 13:43:51 +02:00
Paweł Bylica 45da8cfce8
loader: Use strcpy_sx() everywhere
Previously we used strcpy_s() standard library function on Windows, but it triggers some additional handlers in some cases. To have the same behavior use strcpy_sx() everywhere.
2019-06-27 13:39:43 +02:00
Paweł Bylica 5f307ea325
Merge pull request #332 from ethereum/ubsan-fix
test: Rewrite an unit test to avoid UBSan warning
2019-06-27 10:48:46 +02:00
Paweł Bylica a31c82373f
test: Rewrite an unit test to avoid UBSan warning
Previously in the last iteration of the for loop the value EVMC_MAX_REVISION + 1 is assigned to rev of type evmc_revision what triggers an UBSan warning.
2019-06-27 10:18:51 +02:00
Paweł Bylica e2a162d28c
Merge pull request #329 from ethereum/circleci
ci: Refactor Circle CI config
2019-06-27 08:56:19 +02:00
Paweł Bylica 6555a434db
ci: Move "test-docs" job to "lint" 2019-06-26 14:31:12 +02:00
Paweł Bylica 68fbe69799
ci: Extract common "build_and_test" set of commands 2019-06-26 14:31:12 +02:00
Paweł Bylica dbfe9beb6c
ci: Use Circle CI 2.1, factor out main docker image 2019-06-26 14:31:11 +02:00
Alex Beregszaszi 9d3fc6fa21
Merge pull request #320 from ethereum/rustdoc
rust: add more comments/rustdoc
2019-06-25 20:20:38 +01:00
Alex Beregszaszi 092356dabb rust: add more comments/rustdoc 2019-06-25 20:15:26 +01:00
Alex Beregszaszi 88f2a1dae7
Merge pull request #324 from ethereum/rust-message
rust: introduce ExecutionMessage wrapper
2019-06-25 19:36:23 +01:00
Alex Beregszaszi 315137edd2 rust: prefer getters as opposed to pub members on structs 2019-06-25 19:14:42 +01:00
Alex Beregszaszi 31e6964b04 rust: introduce ExecutionMessage wrapper 2019-06-25 18:51:14 +01:00
Alex Beregszaszi e6eab307fd
Merge pull request #330 from ethereum/rust-container-deref
rust: implement Deref trait for EvmcContainer
2019-06-25 18:48:53 +01:00
Alex Beregszaszi beea4e31c9 rust: implement Deref trait for EvmcContainer 2019-06-25 12:36:04 +01:00
Alex Beregszaszi 32acbfac05
Merge pull request #328 from ethereum/rust-clippy
rust: fix some (mostly stylistic) warnings raised by rustc and clippy
2019-06-25 12:06:09 +01:00
Alex Beregszaszi 7769f7372b rust: fix some (mostly stylistic) warnings raised by rustc and clippy 2019-06-25 12:03:09 +01:00
Alex Beregszaszi 1f507f36f6
Merge pull request #323 from ethereum/rust-asan
circleci: use ASan for vmtester with rust
2019-06-19 21:09:08 +02:00
Jake Lang 244fed6ebc rust: Remove implicit crate version in order to allow static C strings 2019-06-19 19:39:51 +01:00
Alex Beregszaszi 1b1ea288a9 circleci: use ASan for vmtester with rust 2019-06-19 19:39:51 +01:00
Paweł Bylica 94fe0976e3
EVMC 6.3.0-alpha.1
Bump version: 6.3.0-alpha.0 → 6.3.0-alpha.1
2019-06-19 19:45:16 +02:00
Paweł Bylica 464e226f53
Change versioning scheme from -dev to -alpha.X
This allows making versioned snapshots as "alpha.X" pre-release versions.
2019-06-19 19:42:53 +02:00
Alex Beregszaszi 69fada8b55
Merge pull request #312 from ethereum/rust-san
Add LLVM sanitizers to Rust CI
2019-06-19 10:14:49 +02:00
Jake Lang 100282951e rust: Add leak sanitizer to Rust CI
Only support cargo test, but not vmtester yet.
2019-06-19 02:20:12 +01:00
Alex Beregszaszi ac16343b1c
Merge pull request #322 from ethereum/rust-dylib
rust: compile examples for cdylib and not dylib
2019-06-19 03:13:58 +02:00
Alex Beregszaszi 73951327ba rust: compile examples for cdylib and not dylib
This avoids the issue of depending on a dynamically linked rust-libstd
2019-06-19 02:09:20 +01:00
Alex Beregszaszi ef2e180dfd circleci: remove Rust libstd workaround from vmtester 2019-06-19 02:06:46 +01:00