mirror of
https://github.com/tlsnotary/tlsn-js.git
synced 2026-01-08 22:48:04 -05:00
92 lines
2.8 KiB
TOML
92 lines
2.8 KiB
TOML
[package]
|
|
authors = ["The tlsn-extension Developers"]
|
|
description = "tlsn-js library for using TLSNotary in browsers"
|
|
edition = "2018"
|
|
license = "MIT OR Apache-2.0"
|
|
name = "tlsn-extension-rs"
|
|
rust-version = "1.56"
|
|
version = "0.1.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
chrono = "0.4"
|
|
elliptic-curve = { version = "0.13.5", features = ["pkcs8"] }
|
|
futures = "0.3"
|
|
futures-util = "0.3.28"
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
js-sys = "0.3.64"
|
|
p256 = { version = "0.13", features = ["pem", "ecdsa"] }
|
|
rayon = "1.5"
|
|
serde = { version = "1.0.147", features = ["derive"] }
|
|
serde-wasm-bindgen = "0.6.1"
|
|
serde_json = "1.0"
|
|
tracing = "0.1"
|
|
url = { version = "2.0", features = ["serde"] }
|
|
wasm-bindgen = "0.2.87"
|
|
wasm-bindgen-futures = "0.4.37"
|
|
wasm-bindgen-rayon = "1.0"
|
|
pin-project-lite = "0.2.4"
|
|
|
|
http-body-util = "0.1"
|
|
hyper = { version = "1.1", features = ["client", "http1"] }
|
|
hyper-util = { version = "0.1", features = ["http1"] }
|
|
tracing-subscriber = { version = "0.3", features = ["time","env-filter"] }
|
|
tracing-web = "0.1.2"
|
|
|
|
ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }
|
|
|
|
# time crate: https://crates.io/crates/time
|
|
# NOTE: It is required, otherwise "time not implemented on this platform" error happens right after "!@# 2".
|
|
# Probably due to tokio's time feature is used in tlsn-prover?
|
|
time = { version = "0.3.34", features = ["wasm-bindgen"] }
|
|
# Used to calculate elapsed time.
|
|
web-time = "1.0"
|
|
|
|
tlsn-core = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.6", package = "tlsn-core" }
|
|
tlsn-prover = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.6", package = "tlsn-prover" }
|
|
|
|
web-sys = { version = "0.3.4", features = [
|
|
"BinaryType",
|
|
"Blob",
|
|
"ErrorEvent",
|
|
"FileReader",
|
|
"MessageEvent",
|
|
"ProgressEvent",
|
|
"WebSocket",
|
|
"console",
|
|
'Document',
|
|
'HtmlElement',
|
|
'HtmlInputElement',
|
|
'Window',
|
|
'Worker',
|
|
'Headers',
|
|
'Request',
|
|
'RequestInit',
|
|
'RequestMode',
|
|
'Response',
|
|
] }
|
|
|
|
# Use the patched ws_stream_wasm to fix the issue https://github.com/najamelan/ws_stream_wasm/issues/12#issuecomment-1711902958
|
|
ws_stream_wasm = { version = "0.7.4", git = "https://github.com/tlsnotary/ws_stream_wasm", rev = "2ed12aad9f0236e5321f577672f309920b2aef51" }
|
|
|
|
# The `console_error_panic_hook` crate provides better debugging of panics by
|
|
# logging them with `console.error`. This is great for development, but requires
|
|
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
|
# code size when deploying.
|
|
console_error_panic_hook = { version = "0.1.7" }
|
|
|
|
strum = { version = "0.26.1" }
|
|
strum_macros = "0.26.1"
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3.34"
|
|
|
|
[profile.release]
|
|
lto = true # Enable Link Time Optimization
|
|
opt-level = "z" # Optimize for size
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = true
|