canton-ledger 0.2.3

Async Canton Ledger API client (gRPC): commands, streaming, de-duplication, recovery.
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 = "2024"
rust-version = "1.88"
name = "canton-ledger"
version = "0.2.3"
authors = ["NODEJUMPER <dmitryk@nodejumper.io>"]
build = false
include = [
    "src/**/*",
    "examples/**/*",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Canton Ledger API client (gRPC): commands, streaming, de-duplication, recovery."
homepage = "https://nodejumper.io/"
readme = "README.md"
keywords = [
    "canton",
    "grpc",
    "ledger",
    "blockchain",
    "daml",
]
categories = [
    "api-bindings",
    "asynchronous",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/nodejumper-org/canton-rust-sdk"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
otel = [
    "canton-core/otel",
    "dep:http",
]
ws = [
    "dep:tokio-tungstenite",
    "dep:futures-util",
    "dep:rustls",
    "dep:rustls-pki-types",
    "dep:rustls-native-certs",
]

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

[[example]]
name = "localnet"
path = "examples/localnet.rs"

[[example]]
name = "recover_a_submission"
path = "examples/recover_a_submission.rs"

[[example]]
name = "submit_and_read"
path = "examples/submit_and_read.rs"

[[example]]
name = "version_and_health"
path = "examples/version_and_health.rs"

[dependencies.async-stream]
version = "0.3"

[dependencies.canton-auth]
version = "0.2.3"

[dependencies.canton-core]
version = "0.2.3"

[dependencies.canton-proto]
version = "0.2.3"

[dependencies.futures-core]
version = "0.3"

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.http]
version = "1"
optional = true

[dependencies.prost-types]
version = "0.14"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
]
optional = true
default-features = false

[dependencies.rustls-native-certs]
version = "0.8"
optional = true

[dependencies.rustls-pki-types]
version = "1"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "time",
]
default-features = false

[dependencies.tokio-stream]
version = "0.1.1"

[dependencies.tokio-tungstenite]
version = "0.26"
features = [
    "connect",
    "rustls-tls-native-roots",
]
optional = true
default-features = false

[dependencies.tonic]
version = "0.14"
features = [
    "transport",
    "codegen",
    "tls-ring",
    "tls-native-roots",
]
default-features = false

[dependencies.tonic-prost]
version = "0.14"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.canton-proto]
version = "0.2.3"
features = ["server"]

[dev-dependencies.opentelemetry]
version = "0.27"

[dev-dependencies.opentelemetry_sdk]
version = "0.27"
features = ["rt-tokio"]

[dev-dependencies.rcgen]
version = "0.13"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]
default-features = false

[dev-dependencies.tokio-stream]
version = "0.1.1"
features = ["net"]

[dev-dependencies.tracing-opentelemetry]
version = "0.28"

[dev-dependencies.tracing-subscriber]
version = "0.3"

[lints.clippy]
doc_markdown = "allow"
expect_used = "warn"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
unwrap_used = "warn"

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

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1