-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add shardtree crate Resolves brave/brave-browser#40408
- Loading branch information
Showing
30 changed files
with
6,963 additions
and
4 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
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
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
1 change: 1 addition & 0 deletions
1
third_party/rust/chromium_crates_io/vendor/shardtree-0.3.2/.cargo-checksum.json
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 @@ | ||
{"files":{}} |
6 changes: 6 additions & 0 deletions
6
third_party/rust/chromium_crates_io/vendor/shardtree-0.3.2/.cargo_vcs_info.json
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,6 @@ | ||
{ | ||
"git": { | ||
"sha1": "63cbc0a223030838a9f68bd837da6f06497324aa" | ||
}, | ||
"path_in_vcs": "shardtree" | ||
} |
43 changes: 43 additions & 0 deletions
43
third_party/rust/chromium_crates_io/vendor/shardtree-0.3.2/CHANGELOG.md
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,43 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to Rust's notion of | ||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
|
||
## [0.3.2] - 2024-12-09 | ||
- Replaces `unwrap` calls with `expect` calls & documents panics. | ||
|
||
## [0.3.1] - 2024-04-03 | ||
|
||
### Fixed | ||
- Fixes a missing transitive dependency when using the `test-dependencies` feature flag. | ||
|
||
## [0.3.0] - 2024-03-25 | ||
|
||
### Added | ||
- `ShardTree::{store, store_mut}` | ||
- `ShardTree::insert_frontier` | ||
|
||
### Changed | ||
- `shardtree::error::InsertionError` has new variant `MarkedRetentionInvalid` | ||
|
||
## [0.2.0] - 2023-11-07 | ||
|
||
### Added | ||
- `ShardTree::{root_at_checkpoint_id, root_at_checkpoint_id_caching}` | ||
- `ShardTree::{witness_at_checkpoint_id, witness_at_checkpoint_id_caching}` | ||
|
||
### Changed | ||
- `ShardTree::root_at_checkpoint` and `ShardTree::root_at_checkpoint_caching` have | ||
been renamed to `root_at_checkpoint_depth` and `root_at_checkpoint_depth_caching`, | ||
respectively. | ||
- `ShardTree::witness` and `ShardTree::witness_caching` have | ||
been renamed to `witness_at_checkpoint_depth` and `witness_at_checkpoint_depth_caching`, | ||
respectively. | ||
|
||
## [0.1.0] - 2023-09-08 | ||
|
||
Initial release! |
84 changes: 84 additions & 0 deletions
84
third_party/rust/chromium_crates_io/vendor/shardtree-0.3.2/Cargo.toml
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,84 @@ | ||
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
# | ||
# When uploading crates to the registry Cargo will automatically | ||
# "normalize" Cargo.toml files for maximal compatibility | ||
# with all versions of Cargo and also rewrite `path` dependencies | ||
# to registry (e.g., crates.io) dependencies. | ||
# | ||
# If you are reading this file be aware that the original Cargo.toml | ||
# will likely look very different (and much more reasonable). | ||
# See Cargo.toml.orig for the original contents. | ||
|
||
[package] | ||
edition = "2021" | ||
rust-version = "1.60" | ||
name = "shardtree" | ||
version = "0.3.2" | ||
authors = ["Kris Nuttycombe <[email protected]>"] | ||
build = false | ||
autobins = false | ||
autoexamples = false | ||
autotests = false | ||
autobenches = false | ||
description = "A space-efficient Merkle tree with witnessing of marked leaves, checkpointing & state restoration." | ||
homepage = "https://github.com/zcash/incrementalmerkletree" | ||
readme = "README.md" | ||
categories = [ | ||
"algorithms", | ||
"data-structures", | ||
] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/zcash/incrementalmerkletree" | ||
resolver = "1" | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = [ | ||
"--cfg", | ||
"docsrs", | ||
] | ||
|
||
[lib] | ||
name = "shardtree" | ||
path = "src/lib.rs" | ||
|
||
[dependencies.assert_matches] | ||
version = "1.5" | ||
optional = true | ||
|
||
[dependencies.bitflags] | ||
version = "2" | ||
|
||
[dependencies.either] | ||
version = "1.8" | ||
|
||
[dependencies.incrementalmerkletree] | ||
version = "0.5" | ||
|
||
[dependencies.proptest] | ||
version = "1.0.0" | ||
optional = true | ||
|
||
[dependencies.tracing] | ||
version = "0.1" | ||
|
||
[dev-dependencies.assert_matches] | ||
version = "1.5" | ||
|
||
[dev-dependencies.incrementalmerkletree] | ||
version = "0.5" | ||
features = ["test-dependencies"] | ||
|
||
[dev-dependencies.proptest] | ||
version = "1.0.0" | ||
|
||
[features] | ||
legacy-api = ["incrementalmerkletree/legacy-api"] | ||
test-dependencies = [ | ||
"proptest", | ||
"assert_matches", | ||
"incrementalmerkletree/test-dependencies", | ||
] | ||
|
||
[target."cfg(unix)".dev-dependencies.tempfile] | ||
version = ">=3, <3.7.0" |
42 changes: 42 additions & 0 deletions
42
third_party/rust/chromium_crates_io/vendor/shardtree-0.3.2/Cargo.toml.orig
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.