Skip to content
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

Adds zcash_client_memory crate and minor changes to zcash_client_backend to support #1634

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
177 changes: 163 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"zcash",
"zcash_client_backend",
"zcash_client_sqlite",
"zcash_client_memory",
"zcash_extensions",
"zcash_history",
"zcash_keys",
Expand Down Expand Up @@ -126,7 +127,7 @@ subtle = "2.2.3"
rusqlite = { version = "0.32", features = ["bundled"] }
schemerz = "0.2"
schemerz-rusqlite = "0.320"
time = "0.3.22"
time = { version = "0.3.22", default-features = false }
uuid = "1.1"

# Static constants and assertions
Expand Down Expand Up @@ -155,7 +156,7 @@ trait-variant = "0.1"
# ZIP 32
aes = "0.8"
fpe = "0.6"
zip32 = "0.1.1"
zip32 = "0.1.2"

[profile.release]
lto = true
Expand Down
2 changes: 1 addition & 1 deletion components/zcash_protocol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub mod memo;
pub mod value;

/// A Zcash shielded transfer protocol.
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum ShieldedProtocol {
/// The Sapling protocol
Sapling,
Expand Down
9 changes: 8 additions & 1 deletion zcash_client_backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ zip321.workspace = true
# Dependencies exposed in a public API:
# (Breaking upgrades to these require a breaking upgrade to this crate.)
# - Data Access API
time = "0.3.22"
time.workspace = true
nonempty.workspace = true

# - CSPRNG
Expand Down Expand Up @@ -151,6 +151,8 @@ zcash_proofs = { workspace = true, features = ["bundled-prover"] }
zcash_protocol = { workspace = true, features = ["local-consensus"] }

[features]
default = ["time/default"]

## Enables the `tonic` gRPC client bindings for connecting to a `lightwalletd` server.
lightwalletd-tonic = ["dep:tonic", "hyper-util?/tokio"]

Expand Down Expand Up @@ -228,6 +230,11 @@ unstable-serialization = ["dep:byteorder"]
## Exposes the [`data_api::scanning::spanning_tree`] module.
unstable-spanning-tree = []

## feature to allow building for wasm using wasm-bindgen
wasm-bindgen = [
"time/wasm-bindgen",
]

[lib]
bench = false

Expand Down
Loading
Loading