moonproof-utils 0.2.1

Shared helpers (hex parsing, validation) used across moonproof crates. Mirror of midnight-js/packages/utils.
Documentation
# 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"
name = "moonproof-utils"
version = "0.2.1"
authors = ["sashoush"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared helpers (hex parsing, validation) used across moonproof crates. Mirror of midnight-js/packages/utils."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/salamaashoush/moonproof"

[lib]
name = "moonproof_utils"
path = "src/lib.rs"

[dependencies.futures-util]
version = "0.3"
features = ["channel"]

[dependencies.hex]
version = "0.4"

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["sync"]

[dependencies.web-time]
version = "1.1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
    "time",
    "rt",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-timers]
version = "0.4"
features = ["futures"]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[lints.clippy]
dbg_macro = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
todo = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.rust]
unsafe_code = "forbid"