typed-openrpc 0.1.1

Typed JSON-RPC 2.0 method definitions with OpenRPC document generation.
Documentation
mod openrpc;
mod registry;
mod rpc_method;

pub use crate::{
    openrpc::OpenRpcInfo,
    registry::Registry,
    rpc_method::{MethodDoc, RpcMethod},
};

#[cfg(feature = "inventory")]
pub use crate::registry::MethodDocInventoryEntry;

#[cfg(feature = "proc-macro")]
pub use typed_openrpc_macros::rpc_method;

#[cfg(feature = "inventory")]
pub use inventory;

/// Convenience exports for typical crate users.
pub mod prelude {
    pub use super::{MethodDoc, Registry, RpcMethod};

    #[cfg(feature = "proc-macro")]
    pub use super::rpc_method;

    #[cfg(feature = "inventory")]
    pub use super::MethodDocInventoryEntry;
}