-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add empty sequencer crate * empty commit
- Loading branch information
Showing
10 changed files
with
181 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
[workspace] | ||
members = [ "src/execution","src/mempool", "src/primitives"] | ||
|
||
# Explicitly set the resolver to version 2, which is the default for packages with edition >= 2021 | ||
# https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html | ||
resolver = "2" | ||
|
||
[workspace.lints] | ||
rust.missing_debug_implementations = "warn" | ||
rust.missing_docs = "warn" | ||
rust.unreachable_pub = "warn" | ||
rust.unused_must_use = "deny" | ||
rust.rust_2018_idioms = "deny" | ||
rustdoc.all = "warn" | ||
|
||
[workspace.lints.clippy] | ||
# These are some of clippy's nursery (i.e., experimental) lints that we like. | ||
# By default, nursery lints are allowed. Some of the lints below have made good | ||
# suggestions which we fixed. The others didn't have any findings, so we can | ||
# assume they don't have that many false positives. Let's enable them to | ||
# prevent future problems. | ||
branches_sharing_code = "warn" | ||
clear_with_drain = "warn" | ||
derive_partial_eq_without_eq = "warn" | ||
empty_line_after_outer_attr = "warn" | ||
equatable_if_let = "warn" | ||
imprecise_flops = "warn" | ||
iter_on_empty_collections = "warn" | ||
iter_with_drain = "warn" | ||
large_stack_frames = "warn" | ||
manual_clamp = "warn" | ||
mutex_integer = "warn" | ||
needless_pass_by_ref_mut = "warn" | ||
nonstandard_macro_braces = "warn" | ||
or_fun_call = "warn" | ||
path_buf_push_overwrite = "warn" | ||
read_zero_byte_vec = "warn" | ||
redundant_clone = "warn" | ||
suboptimal_flops = "warn" | ||
suspicious_operation_groupings = "warn" | ||
trailing_empty_array = "warn" | ||
trait_duplication_in_bounds = "warn" | ||
transmute_undefined_repr = "warn" | ||
trivial_regex = "warn" | ||
tuple_array_conversions = "warn" | ||
uninhabited_references = "warn" | ||
unused_peekable = "warn" | ||
unused_rounding = "warn" | ||
useless_let_if_seq = "warn" | ||
|
||
# These are nursery lints which have findings. Allow them for now. Some are not | ||
# quite mature enough for use in our codebase and some we don't really want. | ||
# Explicitly listing should make it easier to fix in the future. | ||
as_ptr_cast_mut = "allow" | ||
cognitive_complexity = "allow" | ||
collection_is_never_read = "allow" | ||
debug_assert_with_mut_call = "allow" | ||
empty_line_after_doc_comments = "allow" | ||
fallible_impl_from = "allow" | ||
future_not_send = "allow" | ||
iter_on_single_items = "allow" | ||
missing_const_for_fn = "allow" | ||
needless_collect = "allow" | ||
non_send_fields_in_send_ty = "allow" | ||
option_if_let_else = "allow" | ||
redundant_pub_crate = "allow" | ||
significant_drop_in_scrutinee = "allow" | ||
significant_drop_tightening = "allow" | ||
string_lit_as_bytes = "allow" | ||
type_repetition_in_bounds = "allow" | ||
unnecessary_struct_initialization = "allow" | ||
use_self = "allow" | ||
|
||
|
||
[package] | ||
name = "sequencer" | ||
version = "0.1.0" | ||
edition = "2021" | ||
rust-version = "1.76" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
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,11 @@ | ||
[package] | ||
name = "execution" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
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,14 @@ | ||
pub fn add(left: usize, right: usize) -> usize { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |
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,3 @@ | ||
fn main() { | ||
println!("Here is Kakarot sequencer!"); | ||
} |
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,11 @@ | ||
[package] | ||
name = "mempool" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
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,14 @@ | ||
pub fn add(left: usize, right: usize) -> usize { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |
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,11 @@ | ||
[package] | ||
name = "primitives" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
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,14 @@ | ||
pub fn add(left: usize, right: usize) -> usize { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |