-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Brush up repo for publishing (#58)
# What ❔ Starts brushing up the repo for publishing: - Better structures the repo directories. - Renames crates in a uniform way + uses workspace dependencies. - Structures imports using well-defined configuration. - Reduces visibility of some items. - Adds more crate metadata, e.g. licenses and readmes. ## Why ❔ Part of preparations for publishing the library crates.
- Loading branch information
Showing
84 changed files
with
701 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
[package] | ||
name = "vm2" | ||
[workspace] | ||
members = [ | ||
# Main published library crates | ||
"crates/vm2-interface", | ||
"crates/vm2", | ||
# Testing crates | ||
"tests/afl-fuzz" | ||
] | ||
resolver = "2" | ||
|
||
[workspace.package] | ||
version = "0.1.0" | ||
edition.workspace = true | ||
edition = "2021" | ||
authors = ["The Matter Labs Team <[email protected]>"] | ||
homepage = "https://zksync.io/" | ||
license.workspace = true | ||
authors.workspace = true | ||
|
||
[dependencies] | ||
eravm-stable-interface = { path = "./eravm-stable-interface" } | ||
zkevm_opcode_defs = "0.150.0" | ||
zk_evm_abstractions = "0.150.0" | ||
u256 = { package = "primitive-types", version = "0.12.1" } | ||
enum_dispatch = "0.3" | ||
|
||
# Optional dependencies (used for fuzzing) | ||
arbitrary = { version = "1", features = ["derive"], optional = true } | ||
# The commit incorporates a fix necessary for fuzzing to work correctly. | ||
zk_evm = { git = "https://github.com/matter-labs/era-zk_evm.git", rev = "b7caa02acc2119b2994730d92c8cb6b861f56484", optional = true } | ||
anyhow = { version = "1", optional = true } | ||
repository = "https://github.com/matter-labs/vm2" | ||
license = "MIT OR Apache-2.0" | ||
keywords = ["blockchain", "zksync"] | ||
categories = ["cryptography"] | ||
|
||
[dev-dependencies] | ||
[workspace.dependencies] | ||
# "External" dependencies | ||
afl = "0.15" | ||
anyhow = "1" | ||
arbitrary = "1" | ||
divan = "0.1" | ||
enum_dispatch = "0.3" | ||
pretty_assertions = "1.4.0" | ||
primitive-types = "0.12.1" | ||
proptest = "1.4" | ||
|
||
[[bench]] | ||
name = "nested_near_call" | ||
harness = false | ||
|
||
[features] | ||
default = [] | ||
single_instruction_test = ["arbitrary", "u256/arbitrary", "zk_evm", "anyhow"] | ||
|
||
[workspace] | ||
members = [".", "afl-fuzz", "eravm-stable-interface"] | ||
# "Internal" dependencies | ||
zkevm_opcode_defs = "0.150.0" | ||
zk_evm_abstractions = "0.150.0" | ||
# The commit incorporates a fix necessary for fuzzing to work correctly. | ||
zk_evm = { git = "https://github.com/matter-labs/era-zk_evm.git", rev = "b7caa02acc2119b2994730d92c8cb6b861f56484" } | ||
|
||
[workspace.package] | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
authors = ["The Matter Labs Team <[email protected]>"] | ||
# Dependencies within the workspace | ||
zksync_vm2_interface = { version = "0.1.0", path = "crates/vm2-interface" } | ||
zksync_vm2 = { version = "0.1.0", path = "crates/vm2" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
# zksync-era-vm2 | ||
# High-Performance ZKsync Era VM | ||
|
||
A high-performance rewrite of the zksync-era VM. | ||
A high-performance rewrite of the out-of-circuit VM for ZKsync Era. | ||
|
||
## Overview | ||
|
||
This repository contains the following crates: | ||
|
||
- [`zksync_vm2_interface`](crates/vm2-interface): stable VM interface for tracers | ||
- [`zksync_vm2`](crates/vm2): VM implementation itself | ||
- [`zksync_vm2_afl_fuzz`](tests/afl-fuzz): [AFL](https://crates.io/crates/afl)-based fuzzing for the VM. | ||
|
||
## Policies | ||
|
||
- [Security policy](SECURITY.md) | ||
- [Contribution policy](CONTRIBUTING.md) | ||
|
||
## License | ||
|
||
ZKsync Era VM is distributed under the terms of either | ||
|
||
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>) | ||
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/blog/license/mit/>) | ||
|
||
at your option. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "zksync_vm2_interface" | ||
description = "Stable interface for ZKsync VM tracers" | ||
readme = "README.md" | ||
version.workspace = true | ||
edition.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
|
||
[dependencies] | ||
primitive-types.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE-APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE-MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stable Interface for ZKsync Era VM | ||
|
||
This library provides a stable interface for the EraVM. It defines an interface for tracers that will never change but may be extended. | ||
|
||
## License | ||
|
||
ZKsync Era VM is distributed under the terms of either | ||
|
||
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>) | ||
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/blog/license/mit/>) | ||
|
||
at your option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.