-
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.
* Optimize get ver (#48) * optimize get_ver() * Create rust.yml * fixed clippy and removed dead code Co-authored-by: harry <[email protected]> Co-authored-by: simonjiao <[email protected]> Co-authored-by: simonjiao <[email protected]> * add clean_aux() (#49) Co-authored-by: harry <[email protected]> * adding original errors to new mapped error messages (#51) * Prepare a version of `storage` with Ruc 3.0.0 (#52) * ruc to 3.0.0 * Update rust.yml Co-authored-by: onewayfunc <[email protected]> * fmerk update to v2.1.1 * rollback public interface and ruc version * fix clippy * update clean_aux * V1.0.0 archive (#63) (#66) * catch up fix * add back deprecated API Co-authored-by: Charlie Chen <[email protected]> * Fo 996 v2 (#60) * support `state_at` for Storage * fix test errors * update workflow * rollback public interface * fix iterate * fix some test cases * add snapshot metadata * build snapshots in loading phase * build snapshots in commit phase * enable snapshot in get_ver * add more test cases * add option to construct_base * FO-1238: add merk db all iter and keys internal cf -> keys aux cf base prefix * enable construct base * fix clean_aux and more test cases * cosntrcut_base in clean_aux * avoid panic and add more logs Co-authored-by: Charlie Chen <[email protected]> Co-authored-by: simonjiao <[email protected]> Co-authored-by: 18328594608 <[email protected]> Co-authored-by: Charlie Chen <[email protected]> Co-authored-by: harry <[email protected]> Co-authored-by: simonjiao <[email protected]> Co-authored-by: Harshad Patil <[email protected]> Co-authored-by: Weikeng Chen <[email protected]> Co-authored-by: onewayfunc <[email protected]> Co-authored-by: HarryLiIsMe <[email protected]> Co-authored-by: Charlie Chen <[email protected]> Co-authored-by: 18328594608 <[email protected]>
- Loading branch information
1 parent
d737551
commit 8188cff
Showing
15 changed files
with
2,156 additions
and
107 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
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
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
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
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
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
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,4 +1,111 @@ | ||
/// The merkle db | ||
/// | ||
#[deny( | ||
////The following are allowed by default lints according to | ||
////https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html | ||
absolute_paths_not_starting_with_crate, | ||
//box_pointers, async trait must use it | ||
//elided_lifetimes_in_paths, //allow anonymous lifetime | ||
explicit_outlives_requirements, | ||
keyword_idents, | ||
macro_use_extern_crate, | ||
meta_variable_misuse, | ||
missing_abi, | ||
//missing_copy_implementations, | ||
//missing_debug_implementations, | ||
//missing_docs, | ||
//must_not_suspend, unstable | ||
//non_ascii_idents, | ||
//non_exhaustive_omitted_patterns, unstable | ||
noop_method_call, | ||
pointer_structural_match, | ||
rust_2021_incompatible_closure_captures, | ||
rust_2021_incompatible_or_patterns, | ||
//rust_2021_prefixes_incompatible_syntax, | ||
rust_2021_prelude_collisions, | ||
single_use_lifetimes, | ||
trivial_casts, | ||
trivial_numeric_casts, | ||
unreachable_pub, | ||
unsafe_code, | ||
unsafe_op_in_unsafe_fn, | ||
stable_features, | ||
//unused_crate_dependencies | ||
unused_extern_crates, | ||
unused_import_braces, | ||
unused_lifetimes, | ||
unused_qualifications, | ||
unused_results, | ||
variant_size_differences, | ||
warnings, //treat all warnings as errors | ||
clippy::all, | ||
//clippy::pedantic, | ||
clippy::cargo, | ||
//The followings are selected restriction lints for rust 1.57 | ||
clippy::as_conversions, | ||
clippy::clone_on_ref_ptr, | ||
clippy::create_dir, | ||
clippy::dbg_macro, | ||
clippy::decimal_literal_representation, | ||
//clippy::default_numeric_fallback, too verbose when dealing with numbers | ||
clippy::disallowed_script_idents, | ||
clippy::else_if_without_else, | ||
//clippy::exhaustive_enums, | ||
clippy::exhaustive_structs, | ||
clippy::exit, | ||
clippy::expect_used, | ||
clippy::filetype_is_file, | ||
clippy::float_arithmetic, | ||
clippy::float_cmp_const, | ||
clippy::get_unwrap, | ||
clippy::if_then_some_else_none, | ||
//clippy::implicit_return, it's idiomatic Rust code. | ||
clippy::indexing_slicing, | ||
//clippy::inline_asm_x86_att_syntax, | ||
//clippy::inline_asm_x86_intel_syntax, | ||
clippy::integer_arithmetic, | ||
clippy::integer_division, | ||
clippy::let_underscore_must_use, | ||
clippy::lossy_float_literal, | ||
clippy::map_err_ignore, | ||
clippy::mem_forget, | ||
//clippy::missing_docs_in_private_items, | ||
clippy::missing_enforced_import_renames, | ||
clippy::missing_inline_in_public_items, | ||
//clippy::mod_module_files, mod.rs file lis used | ||
clippy::modulo_arithmetic, | ||
clippy::multiple_inherent_impl, | ||
//clippy::panic, allow in application code | ||
//clippy::panic_in_result_fn, not necessary as panic is banned | ||
clippy::pattern_type_mismatch, | ||
clippy::print_stderr, | ||
clippy::print_stdout, | ||
clippy::rc_buffer, | ||
clippy::rc_mutex, | ||
clippy::rest_pat_in_fully_bound_structs, | ||
clippy::same_name_method, | ||
clippy::self_named_module_files, | ||
//clippy::shadow_reuse, it’s a common pattern in Rust code | ||
//clippy::shadow_same, it’s a common pattern in Rust code | ||
clippy::shadow_unrelated, | ||
clippy::str_to_string, | ||
clippy::string_add, | ||
clippy::string_to_string, | ||
clippy::todo, | ||
clippy::unimplemented, | ||
clippy::unnecessary_self_imports, | ||
clippy::unneeded_field_pattern, | ||
//clippy::unreachable, allow unreachable panic,which is out of expectation | ||
clippy::unwrap_in_result, | ||
clippy::unwrap_used, | ||
//clippy::use_debug, debug is allow for debug log | ||
clippy::verbose_file_reads, | ||
clippy::wildcard_enum_match_arm, | ||
)] | ||
#[allow( | ||
clippy::panic, //allow debug_assert,panic in production code | ||
clippy::multiple_crate_versions, //caused by the dependency, can't be fixed | ||
)] | ||
pub mod db; | ||
pub mod state; | ||
pub mod store; |
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.