mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-12-23 12:09:52 +00:00
92800810d9
* readme * cuprated: add all workspace deps * cuprated: add lints * !! * add state, fn signatures * fixes * error signatures * interface: handle json-rpc concepts * split rpc calls into 3 `Service`s * interface: extract out to `RpcService` * fix merge * remove crate lints * use `BoxFuture` * rpc/interface: impl `thiserror::Error` * split state from main handler struct * cleanup * fix imports * replace `RpcError` with `anyhow::Error` * interface: update error * cuprated: update error type
37 lines
No EOL
1.3 KiB
TOML
37 lines
No EOL
1.3 KiB
TOML
[package]
|
|
name = "cuprate-rpc-interface"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
description = "Cuprate's RPC interface library"
|
|
license = "MIT"
|
|
authors = ["hinto-janai"]
|
|
repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/cuprate-rpc-interface"
|
|
keywords = ["cuprate", "rpc", "interface"]
|
|
|
|
[features]
|
|
default = ["dummy", "serde"]
|
|
dummy = []
|
|
|
|
[dependencies]
|
|
cuprate-epee-encoding = { path = "../../net/epee-encoding", default-features = false }
|
|
cuprate-json-rpc = { path = "../json-rpc", default-features = false }
|
|
cuprate-rpc-types = { path = "../types", features = ["serde", "epee"], default-features = false }
|
|
cuprate-helper = { path = "../../helper", features = ["asynch"], default-features = false }
|
|
|
|
anyhow = { workspace = true }
|
|
axum = { version = "0.7.5", features = ["json"], default-features = false }
|
|
serde = { workspace = true, optional = true }
|
|
tower = { workspace = true }
|
|
paste = { workspace = true }
|
|
futures = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
cuprate-test-utils = { path = "../../test-utils" }
|
|
|
|
axum = { version = "0.7.5", features = ["json", "tokio", "http2"] }
|
|
serde_json = { workspace = true, features = ["std"] }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
ureq = { version = "2.10.0", features = ["json"] }
|
|
|
|
[lints]
|
|
workspace = true |