[package]
edition = "2024"
rust-version = "1.88"
name = "canton-token"
version = "0.3.2"
authors = ["NODEJUMPER <dmitryk@nodejumper.io>"]
build = false
include = [
"src/**/*",
"examples/**/*",
"README.md",
"LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Canton Network token-standard workflows (CIP-56 and CIP-0112): registry client, choice contexts, transfers and allocations."
homepage = "https://nodejumper.io/"
readme = "README.md"
keywords = [
"canton",
"daml",
"token-standard",
"cip-56",
"cip-0112",
]
categories = [
"api-bindings",
"asynchronous",
]
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",
]
[lib]
name = "canton_token"
path = "src/lib.rs"
[[example]]
name = "v1_transfer"
path = "examples/v1_transfer.rs"
[[example]]
name = "v2_allocate"
path = "examples/v2_allocate.rs"
[[example]]
name = "v2_settle"
path = "examples/v2_settle.rs"
[[example]]
name = "v2_transfer"
path = "examples/v2_transfer.rs"
[[example]]
name = "v2_withdraw_allocation"
path = "examples/v2_withdraw_allocation.rs"
[dependencies.base64]
version = "0.22"
[dependencies.canton-core]
version = "0.3.2"
[dependencies.canton-daml]
version = "0.3.2"
[dependencies.canton-ledger]
version = "0.3.2"
[dependencies.canton-proto]
version = "0.3.2"
[dependencies.canton-splice-api-token-allocation-instruction-v1]
version = "0.3.2"
[dependencies.canton-splice-api-token-allocation-instruction-v2]
version = "0.3.2"
[dependencies.canton-splice-api-token-allocation-v1]
version = "0.3.2"
[dependencies.canton-splice-api-token-allocation-v2]
version = "0.3.2"
[dependencies.canton-splice-api-token-holding-v1]
version = "0.3.2"
[dependencies.canton-splice-api-token-holding-v2]
version = "0.3.2"
[dependencies.canton-splice-api-token-metadata-v1]
version = "0.3.2"
[dependencies.canton-splice-api-token-transfer-events-v2]
version = "0.3.2"
[dependencies.canton-splice-api-token-transfer-instruction-v1]
version = "0.3.2"
[dependencies.canton-splice-api-token-transfer-instruction-v2]
version = "0.3.2"
[dependencies.futures-util]
version = "0.3"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.canton-auth]
version = "0.3.2"
[dev-dependencies.canton-proto]
version = "0.3.2"
features = ["server"]
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"net",
"io-util",
]
default-features = false
[dev-dependencies.tokio-stream]
version = "0.1.1"
features = ["net"]
[dev-dependencies.tonic]
version = "0.14"
features = [
"transport",
"codegen",
]
default-features = false
[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