[package]
edition = "2021"
name = "tap-node"
version = "0.6.0"
authors = ["Pelle Braendgaard <pelle@notabene.id>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Transaction Authorization Protocol (TAP) node implementation for routing and processing messages"
readme = "README.md"
license = "MIT"
repository = "https://github.com/TransactionAuthorizationProtocol/tap-rs"
[features]
default = [
"native",
"storage",
]
native = [
"tokio/full",
"reqwest",
]
native-with-websocket = [
"native",
"websocket",
]
storage = [
"sqlx",
"dirs",
]
wasm = [
"wasm-bindgen",
"js-sys",
"wasm-bindgen-futures",
"console_error_panic_hook",
"web-sys",
]
wasm-with-websocket = [
"wasm",
"web-sys/WebSocket",
"web-sys/MessageEvent",
"web-sys/BinaryType",
]
websocket = ["tokio-tungstenite"]
[lib]
name = "tap_node"
path = "src/lib.rs"
[[example]]
name = "delivery_tracking_demo"
path = "examples/delivery_tracking_demo.rs"
[[example]]
name = "event_logger_demo"
path = "examples/event_logger_demo.rs"
[[example]]
name = "http_message_flow"
path = "examples/http_message_flow.rs"
[[example]]
name = "travel_rule_flow"
path = "examples/travel_rule_flow.rs"
[[example]]
name = "websocket_message_flow"
path = "examples/websocket_message_flow.rs"
[[test]]
name = "customer_extraction_test"
path = "tests/customer_extraction_test.rs"
[[test]]
name = "customer_name_hash_tests"
path = "tests/customer_name_hash_tests.rs"
[[test]]
name = "delivery_tracking_test"
path = "tests/delivery_tracking_test.rs"
[[test]]
name = "didcomm_validation_test"
path = "tests/didcomm_validation_test.rs"
[[test]]
name = "event_logger_tests"
path = "tests/event_logger_tests.rs"
[[test]]
name = "internal_delivery_test"
path = "tests/internal_delivery_test.rs"
[[test]]
name = "message_routing_tests"
path = "tests/message_routing_tests.rs"
[[test]]
name = "message_tests"
path = "tests/message_tests.rs"
[[test]]
name = "multi_agent_storage_test"
path = "tests/multi_agent_storage_test.rs"
[[test]]
name = "node_tests"
path = "tests/node_tests.rs"
[[test]]
name = "processor_tests"
path = "tests/processor_tests.rs"
[[test]]
name = "received_table_test"
path = "tests/received_table_test.rs"
[[test]]
name = "sender_tests"
path = "tests/sender_tests.rs"
[[test]]
name = "state_machine_integration_tests"
path = "tests/state_machine_integration_tests.rs"
[[test]]
name = "storage_tests"
path = "tests/storage_tests.rs"
[[test]]
name = "timestamp_format_test"
path = "tests/timestamp_format_test.rs"
[[test]]
name = "travel_rule_integration_test"
path = "tests/travel_rule_integration_test.rs"
[[test]]
name = "validation_tests"
path = "tests/validation_tests.rs"
[[test]]
name = "websocket_tests"
path = "tests/websocket_tests.rs"
[[bench]]
name = "stress_test"
path = "benches/stress_test.rs"
harness = false
[dependencies.anyhow]
version = "1.0.99"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.base58]
version = "0.2"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.console_error_panic_hook]
version = "0.1"
optional = true
[dependencies.dashmap]
version = "6.1"
[dependencies.dirs]
version = "6.0"
optional = true
[dependencies.futures]
version = "0.3"
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.percent-encoding]
version = "2.3"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.sqlx]
version = "0.8.6"
features = [
"runtime-tokio-native-tls",
"sqlite",
"migrate",
"json",
]
optional = true
[dependencies.tap-agent]
version = "0.6.0"
[dependencies.tap-caip]
version = "0.6.0"
[dependencies.tap-ivms101]
version = "0.6.0"
[dependencies.tap-msg]
version = "0.6.0"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1.47.1"
features = [
"sync",
"macros",
"io-util",
"rt",
"time",
]
default-features = false
[dependencies.tokio-tungstenite]
version = "0.24"
features = ["native-tls"]
optional = true
[dependencies.tracing]
version = "0.1.37"
[dependencies.uuid]
version = "1.18.0"
features = [
"v4",
"serde",
"fast-rng",
"js",
]
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[dependencies.web-sys]
version = "0.3"
features = [
"console",
"Headers",
"Request",
"RequestInit",
"RequestMode",
"Response",
"Window",
"Blob",
"Headers",
"Request",
"RequestInit",
"RequestMode",
"Response",
"Window",
]
optional = true
[dev-dependencies.criterion]
version = "0.6"
features = ["async_tokio"]
[dev-dependencies.env_logger]
version = "0.10"
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.tempfile]
version = "3.8"
[dev-dependencies.tokio-test]
version = "0.4.3"