sausage-plugin part 2: import! with typed clients (sausage_interface::client_rs), TCP endpoints with rpc.endpoint, examples
Part 1 fixes: complete stdout writes, buffered stdin, Rust type names in schemas, enum variant docs, -32603 for serde errors in handlers, crate docs and modules. End-to-end check of a generated consumer through a fake core.
This commit is contained in:
@@ -4,8 +4,18 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
description = "Sausage plugin interfaces: OpenRPC documents, the compatibility check, and client code generation."
|
||||
|
||||
[features]
|
||||
default = ["codegen"]
|
||||
codegen = ["dep:typify", "dep:schemars08", "dep:syn", "dep:quote", "dep:prettyplease", "dep:proc-macro2"]
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1"
|
||||
typify = { version = "0.6", optional = true }
|
||||
schemars08 = { package = "schemars", version = "0.8", optional = true }
|
||||
syn = { version = "2", features = ["full", "visit-mut"], optional = true }
|
||||
quote = { version = "1", optional = true }
|
||||
prettyplease = { version = "0.2", optional = true }
|
||||
proc-macro2 = { version = "1", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
proptest = "1"
|
||||
|
||||
Reference in New Issue
Block a user