-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: one zero package #625
Conversation
zero_bin
crates
zero_bin
crateszero_bin
crates, vol 1
708144d
to
6dfca34
Compare
…arithmetization/benches/fibonacci_25m_gas.rs evm_arithmetization/benches/stack_manipulation.rs evm_arithmetization/src/all_stark.rs evm_arithmetization/src/arithmetic/addcy.rs evm_arithmetization/src/arithmetic/arithmetic_stark.rs evm_arithmetization/src/arithmetic/byte.rs evm_arithmetization/src/arithmetic/columns.rs evm_arithmetization/src/arithmetic/divmod.rs evm_arithmetization/src/arithmetic/mod.rs evm_arithmetization/src/arithmetic/modular.rs evm_arithmetization/src/arithmetic/mul.rs evm_arithmetization/src/arithmetic/shift.rs evm_arithmetization/src/arithmetic/utils.rs evm_arithmetization/src/bin/assemble.rs evm_arithmetization/src/byte_packing/byte_packing_stark.rs evm_arithmetization/src/byte_packing/columns.rs evm_arithmetization/src/byte_packing/mod.rs evm_arithmetization/src/cpu/byte_unpacking.rs evm_arithmetization/src/cpu/clock.rs evm_arithmetization/src/cpu/columns/general.rs evm_arithmetization/src/cpu/columns/mod.rs evm_arithmetization/src/cpu/columns/ops.rs evm_arithmetization/src/cpu/contextops.rs evm_arithmetization/src/cpu/control_flow.rs evm_arithmetization/src/cpu/cpu_stark.rs evm_arithmetization/src/cpu/decode.rs evm_arithmetization/src/cpu/dup_swap.rs evm_arithmetization/src/cpu/gas.rs evm_arithmetization/src/cpu/halt.rs evm_arithmetization/src/cpu/jumps.rs evm_arithmetization/src/cpu/kernel/aggregator.rs evm_arithmetization/src/cpu/kernel/assembler.rs evm_arithmetization/src/cpu/kernel/ast.rs evm_arithmetization/src/cpu/kernel/constants/context_metadata.rs evm_arithmetization/src/cpu/kernel/constants/exc_bitfields.rs evm_arithmetization/src/cpu/kernel/constants/global_metadata.rs evm_arithmetization/src/cpu/kernel/constants/journal_entry.rs evm_arithmetization/src/cpu/kernel/constants/mod.rs evm_arithmetization/src/cpu/kernel/constants/trie_type.rs evm_arithmetization/src/cpu/kernel/constants/txn_fields.rs evm_arithmetization/src/cpu/kernel/cost_estimator.rs evm_arithmetization/src/cpu/kernel/interpreter.rs evm_arithmetization/src/cpu/kernel/keccak_util.rs evm_arithmetization/src/cpu/kernel/mod.rs evm_arithmetization/src/cpu/kernel/opcodes.rs evm_arithmetization/src/cpu/kernel/optimizer.rs evm_arithmetization/src/cpu/kernel/parser.rs evm_arithmetization/src/cpu/kernel/stack/mod.rs evm_arithmetization/src/cpu/kernel/stack/permutations.rs evm_arithmetization/src/cpu/kernel/stack/stack_manipulation.rs evm_arithmetization/src/cpu/kernel/tests/account_code.rs evm_arithmetization/src/cpu/kernel/tests/add11.rs evm_arithmetization/src/cpu/kernel/tests/balance.rs evm_arithmetization/src/cpu/kernel/tests/bignum/mod.rs evm_arithmetization/src/cpu/kernel/tests/blake2_f.rs evm_arithmetization/src/cpu/kernel/tests/blobhash.rs evm_arithmetization/src/cpu/kernel/tests/block_hash.rs evm_arithmetization/src/cpu/kernel/tests/bls381.rs evm_arithmetization/src/cpu/kernel/tests/bn254.rs evm_arithmetization/src/cpu/kernel/tests/core/access_lists.rs evm_arithmetization/src/cpu/kernel/tests/core/create_addresses.rs evm_arithmetization/src/cpu/kernel/tests/core/intrinsic_gas.rs evm_arithmetization/src/cpu/kernel/tests/core/jumpdest_analysis.rs evm_arithmetization/src/cpu/kernel/tests/core/mod.rs evm_arithmetization/src/cpu/kernel/tests/ecc/curve_ops.rs evm_arithmetization/src/cpu/kernel/tests/ecc/ecrecover.rs evm_arithmetization/src/cpu/kernel/tests/ecc/mod.rs evm_arithmetization/src/cpu/kernel/tests/exp.rs evm_arithmetization/src/cpu/kernel/tests/hash.rs evm_arithmetization/src/cpu/kernel/tests/init_exc_stop.rs evm_arithmetization/src/cpu/kernel/tests/kernel_consistency.rs evm_arithmetization/src/cpu/kernel/tests/log.rs evm_arithmetization/src/cpu/kernel/tests/mcopy.rs evm_arithmetization/src/cpu/kernel/tests/mod.rs evm_arithmetization/src/cpu/kernel/tests/mpt/delete.rs evm_arithmetization/src/cpu/kernel/tests/mpt/hash.rs evm_arithmetization/src/cpu/kernel/tests/mpt/hex_prefix.rs evm_arithmetization/src/cpu/kernel/tests/mpt/insert.rs evm_arithmetization/src/cpu/kernel/tests/mpt/linked_list.rs evm_arithmetization/src/cpu/kernel/tests/mpt/load.rs evm_arithmetization/src/cpu/kernel/tests/mpt/mod.rs evm_arithmetization/src/cpu/kernel/tests/mpt/read.rs evm_arithmetization/src/cpu/kernel/tests/packing.rs evm_arithmetization/src/cpu/kernel/tests/receipt.rs evm_arithmetization/src/cpu/kernel/tests/rlp/decode.rs evm_arithmetization/src/cpu/kernel/tests/rlp/encode.rs evm_arithmetization/src/cpu/kernel/tests/rlp/mod.rs evm_arithmetization/src/cpu/kernel/tests/rlp/num_bytes.rs evm_arithmetization/src/cpu/kernel/tests/signed_syscalls.rs evm_arithmetization/src/cpu/kernel/tests/transaction_parsing/mod.rs evm_arithmetization/src/cpu/kernel/tests/transaction_parsing/parse_type_0_txn.rs evm_arithmetization/src/cpu/kernel/tests/transaction_parsing/parse_type_1_txn.rs evm_arithmetization/src/cpu/kernel/tests/transaction_parsing/parse_type_2_txn.rs evm_arithmetization/src/cpu/kernel/tests/transaction_parsing/parse_type_3_txn.rs evm_arithmetization/src/cpu/kernel/tests/transient_storage.rs evm_arithmetization/src/cpu/kernel/utils.rs evm_arithmetization/src/cpu/membus.rs evm_arithmetization/src/cpu/memio.rs evm_arithmetization/src/cpu/mod.rs evm_arithmetization/src/cpu/modfp254.rs evm_arithmetization/src/cpu/pc.rs evm_arithmetization/src/cpu/push0.rs evm_arithmetization/src/cpu/shift.rs evm_arithmetization/src/cpu/simple_logic/eq_iszero.rs evm_arithmetization/src/cpu/simple_logic/mod.rs evm_arithmetization/src/cpu/simple_logic/not.rs evm_arithmetization/src/cpu/stack.rs evm_arithmetization/src/cpu/syscalls_exceptions.rs evm_arithmetization/src/curve_pairings.rs evm_arithmetization/src/extension_tower.rs evm_arithmetization/src/fixed_recursive_verifier.rs evm_arithmetization/src/generation/linked_list.rs evm_arithmetization/src/generation/mod.rs evm_arithmetization/src/generation/mpt.rs evm_arithmetization/src/generation/prover_input.rs evm_arithmetization/src/generation/rlp.rs evm_arithmetization/src/generation/segments.rs evm_arithmetization/src/generation/state.rs evm_arithmetization/src/generation/trie_extractor.rs evm_arithmetization/src/get_challenges.rs evm_arithmetization/src/keccak/columns.rs evm_arithmetization/src/keccak/constants.rs evm_arithmetization/src/keccak/keccak_stark.rs evm_arithmetization/src/keccak/logic.rs evm_arithmetization/src/keccak/mod.rs evm_arithmetization/src/keccak/round_flags.rs evm_arithmetization/src/keccak_sponge/columns.rs evm_arithmetization/src/keccak_sponge/keccak_sponge_stark.rs evm_arithmetization/src/keccak_sponge/mod.rs evm_arithmetization/src/lib.rs evm_arithmetization/src/logic.rs evm_arithmetization/src/memory/columns.rs evm_arithmetization/src/memory/memory_stark.rs evm_arithmetization/src/memory/mod.rs evm_arithmetization/src/memory/segments.rs evm_arithmetization/src/memory_continuation/columns.rs evm_arithmetization/src/memory_continuation/memory_continuation_stark.rs evm_arithmetization/src/memory_continuation/mod.rs evm_arithmetization/src/poseidon/columns.rs evm_arithmetization/src/poseidon/mod.rs evm_arithmetization/src/poseidon/poseidon_stark.rs evm_arithmetization/src/proof.rs evm_arithmetization/src/prover.rs evm_arithmetization/src/recursive_verifier.rs evm_arithmetization/src/testing_utils.rs evm_arithmetization/src/util.rs evm_arithmetization/src/verifier.rs evm_arithmetization/src/witness/errors.rs evm_arithmetization/src/witness/gas.rs evm_arithmetization/src/witness/memory.rs evm_arithmetization/src/witness/mod.rs evm_arithmetization/src/witness/operation.rs evm_arithmetization/src/witness/state.rs evm_arithmetization/src/witness/traces.rs evm_arithmetization/src/witness/transition.rs evm_arithmetization/src/witness/util.rs evm_arithmetization/tests/add11_yml.rs evm_arithmetization/tests/erc20.rs evm_arithmetization/tests/erc721.rs evm_arithmetization/tests/global_exit_root.rs evm_arithmetization/tests/log_opcode.rs evm_arithmetization/tests/selfdestruct.rs evm_arithmetization/tests/simple_transfer.rs evm_arithmetization/tests/two_to_one_block.rs evm_arithmetization/tests/withdrawals.rs mpt_trie/examples/ethereum_trie.rs mpt_trie/examples/hash_nodes.rs mpt_trie/examples/simple.rs mpt_trie/src/builder.rs mpt_trie/src/debug_tools/diff.rs mpt_trie/src/debug_tools/mod.rs mpt_trie/src/debug_tools/query.rs mpt_trie/src/debug_tools/stats.rs mpt_trie/src/lib.rs mpt_trie/src/nibbles.rs mpt_trie/src/partial_trie.rs mpt_trie/src/special_query.rs mpt_trie/src/testing_utils.rs mpt_trie/src/trie_hashing.rs mpt_trie/src/trie_ops.rs mpt_trie/src/trie_subsets.rs mpt_trie/src/utils.rs proc_macro/src/common.rs proc_macro/src/impls/columns.rs proc_macro/src/impls/deref_columns.rs proc_macro/src/impls/mod.rs proc_macro/src/lib.rs proc_macro/tests/compile/mod.rs proc_macro/tests/compile/test_impls.rs proc_macro/tests/compile_fail/not_repr_c.rs proc_macro/tests/compile_fail/not_repr_c_deref.rs proc_macro/tests/compile_fail/not_struct.rs proc_macro/tests/compile_fail/not_struct_deref.rs proc_macro/tests/compiletest.rs proof_gen/src/constants.rs proof_gen/src/lib.rs proof_gen/src/proof_gen.rs proof_gen/src/proof_types.rs proof_gen/src/prover_state.rs proof_gen/src/types.rs proof_gen/src/verifier_state.rs smt_trie/src/bits.rs smt_trie/src/code.rs smt_trie/src/db.rs smt_trie/src/keys.rs smt_trie/src/lib.rs smt_trie/src/smt.rs smt_trie/src/smt_test.rs smt_trie/src/utils.rs trace_decoder/benches/block_processing.rs trace_decoder/src/core.rs trace_decoder/src/interface.rs trace_decoder/src/lib.rs trace_decoder/src/type1.rs trace_decoder/src/type2.rs trace_decoder/src/typed_mpt.rs trace_decoder/src/wire.rs trace_decoder/tests/common/mod.rs trace_decoder/tests/consistent-with-header.rs trace_decoder/tests/simulate-execution.rs zero/build.rs zero/src/bin/leader.rs zero/src/bin/leader/cli.rs zero/src/bin/leader/client.rs zero/src/bin/leader/http.rs zero/src/bin/leader/stdio.rs zero/src/bin/rpc.rs zero/src/bin/verifier.rs zero/src/bin/verifier/cli.rs zero/src/bin/verifier/init.rs zero/src/bin/worker.rs zero/src/block_interval.rs zero/src/debug_utils.rs zero/src/env.rs zero/src/fs.rs zero/src/lib.rs zero/src/ops.rs zero/src/parsing.rs zero/src/pre_checks.rs zero/src/prover.rs zero/src/prover/cli.rs zero/src/prover_state/circuit.rs zero/src/prover_state/cli.rs zero/src/prover_state/mod.rs zero/src/prover_state/persistence.rs zero/src/provider.rs zero/src/rpc/jerigon.rs zero/src/rpc/mod.rs zero/src/rpc/native/mod.rs zero/src/rpc/native/state.rs zero/src/rpc/native/txn.rs zero/src/rpc/retry.rs zero/src/tracing.rs zero/src/version.rs **/*.yml zero/tools/prove_rpc.sh zero/tools/prove_stdio.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it'd be worth having an actual discussion with everyone on the project before spending time and ressources in such work. I don't think we're all aligned in the "1 crate is better" vision
I haven't looked at the PR yet, but we had discussion about this topic on previous |
zero_bin
crates, vol 1zero_bin
crates
zero_bin
crates227b551
to
82a0865
Compare
# Add 'crate: zero_bin' label to any changes within 'zero' folder. | ||
'crate: zero_bin': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we may want to rename the lint to crate: zero
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this the same for convenience (e.g looking at historical issues). Happy to change :)
0898fc1
to
8a3f56b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No qualms
As a repo we've often reached for creating a new crate when a module or even a single rust file would do.
Let's start to roll that complecting back.
This unlocks further refactoring of common code, and e.g moving
trace_decoder
out of a crate.Eventually I want just a slim
cargo build-all-features
workflow