mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-12-23 03:59:37 +00:00
929d19c450
* fixed-bytes: add `serde`, document feature flags * fixed-bytes: add derives * rpc: add `as _` syntax to macro * rpc: use `ByteArrayVec` and `ContainerAsBlob` for binary types * fixed-bytes: re-add derives * rpc-types: dedup default value within macro * readme: fixed bytes section * types: custom epee - `BlockCompleteEntry` * types: custom epee - `KeyImageSpentStatus` * types: custom epee - `PoolInfoExtent` * types: add `Status::Other(String)` variant * types: custom epee - `TxEntry`, add `read_epee_field` macro * bin: custom epee - `GetBlocks` * types: add `serde.rs` * misc: make `TxEntry` an `enum`, impl serde * misc: `unimplemented!()` for `TxEntry`'s epee * types: add `BlockCompleteEntry` * rpc: replace `BlockCompleteEntry` with `cuprate-types` * types: document `BlockCompleteEntry` * bin: fix `number_of_fields` for `GetBlocksResponse` * misc: add `Distribution` * distribution: add todo * misc fixes * readme: add `(De)serialization invariants` * distribution: compress variants * types: add `block_complete_entry.rs` * net: fix imports * p2p: fix imports * turn off default-features * p2p: fix imports * misc fixes * Update net/wire/Cargo.toml Co-authored-by: Boog900 <boog900@tutanota.com> * distribution: module doc * wire: re-export types * bin: use enum for `GetBlocksResponse` * misc: use lowercase for stringify * remove duplicated fields for custom epee * types: remove `should_write()` for custom epee * bin: split `GetBlocksResponse` variant fields into structs * misc: split `Distribution` variant fields into structs * small fixes * put all fields in `read_epee_field!` * distribution: (de)compress during epee/serde (de)serialization * distribution: leave (de)compression functions as `todo!()` --------- Co-authored-by: Boog900 <boog900@tutanota.com>
27 lines
856 B
TOML
27 lines
856 B
TOML
[package]
|
|
name = "cuprate-rpc-types"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
description = "Monero RPC types"
|
|
license = "MIT"
|
|
authors = ["hinto-janai"]
|
|
repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/types"
|
|
keywords = ["cuprate", "rpc", "types", "monero"]
|
|
|
|
[features]
|
|
default = ["serde", "epee"]
|
|
serde = ["dep:serde", "cuprate-fixed-bytes/serde"]
|
|
epee = ["dep:cuprate-epee-encoding"]
|
|
|
|
[dependencies]
|
|
cuprate-epee-encoding = { path = "../../net/epee-encoding", optional = true }
|
|
cuprate-fixed-bytes = { path = "../../net/fixed-bytes" }
|
|
cuprate-types = { path = "../../types" }
|
|
|
|
monero-serai = { workspace = true }
|
|
paste = { workspace = true }
|
|
serde = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
serde_json = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|