|
| 1 | +[package] |
| 2 | +name = "truapi-server" |
| 3 | +version = "0.1.0" |
| 4 | +edition.workspace = true |
| 5 | +description = "TrUAPI server runtime: dispatcher, frames, SCALE, streams" |
| 6 | +license = "MIT" |
| 7 | + |
| 8 | +[lib] |
| 9 | +crate-type = ["rlib", "cdylib"] |
| 10 | + |
| 11 | +[features] |
| 12 | +default = [] |
| 13 | + |
| 14 | +[dependencies] |
| 15 | +truapi = { path = "../truapi" } |
| 16 | +truapi-platform = { path = "../truapi-platform" } |
| 17 | +async-trait = "0.1" |
| 18 | +derive_more = { version = "2", features = ["display"] } |
| 19 | +futures = "0.3" |
| 20 | +futures-timer = { version = "3", features = ["wasm-bindgen"] } |
| 21 | +parity-scale-codec = { version = "3", features = ["derive"] } |
| 22 | +primitive-types = { version = "0.13", default-features = false, features = ["serde"] } |
| 23 | +serde = { version = "1", features = ["derive"] } |
| 24 | +serde_json = "1" |
| 25 | +thiserror = "1" |
| 26 | +unicode-normalization = "0.1" |
| 27 | +url = "2" |
| 28 | +hex = "0.4" |
| 29 | +blake2-rfc = { version = "0.2", default-features = false } |
| 30 | +sp-crypto-hashing = { version = "0.1", default-features = false } |
| 31 | +bs58 = { version = "0.5", default-features = false, features = ["alloc"] } |
| 32 | +schnorrkel = { version = "0.11.5", default-features = false, features = ["alloc", "getrandom"] } |
| 33 | +getrandom = { version = "0.2", features = ["js"] } |
| 34 | +p256 = { version = "0.13", default-features = false, features = ["ecdh"] } |
| 35 | +hkdf = "0.12" |
| 36 | +sha2 = "0.10" |
| 37 | +aes-gcm = { version = "0.10", default-features = false, features = ["aes", "alloc"] } |
| 38 | +tracing = "0.1" |
| 39 | +# `registry` + `std` only: pulls the Registry + per-layer filter/reload, but |
| 40 | +# not `env-filter` (which drags in `regex`, heavy on wasm). |
| 41 | +tracing-subscriber = { version = "0.3", default-features = false, features = ["registry", "std"] } |
| 42 | + |
| 43 | +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] |
| 44 | +subxt-rpcs = { version = "0.50.1", default-features = false, features = ["native"] } |
| 45 | + |
| 46 | +[target.'cfg(target_arch = "wasm32")'.dependencies] |
| 47 | +js-sys = "0.3" |
| 48 | +subxt-rpcs = { version = "0.50.1", default-features = false, features = ["web"] } |
| 49 | +wasm-bindgen = "0.2.118" |
| 50 | +wasm-bindgen-futures = "0.4" |
| 51 | +console_error_panic_hook = "0.1" |
| 52 | +futures-util = "0.3" |
| 53 | +pin-project = "1" |
| 54 | +send_wrapper = { version = "0.6", features = ["futures"] } |
| 55 | +web-time = "1" |
| 56 | +web-sys = { version = "0.3", features = [ |
| 57 | + "BinaryType", |
| 58 | + "CloseEvent", |
| 59 | + "console", |
| 60 | + "Event", |
| 61 | + "MessageEvent", |
| 62 | + "WebSocket", |
| 63 | +] } |
| 64 | + |
| 65 | +[target.'cfg(target_arch = "wasm32")'.dev-dependencies] |
| 66 | +wasm-bindgen-test = "0.3" |
0 commit comments