rstrpc 0.0.1

Type-safe framework for an JSONRPC server written in Rust with an automatically generated TypeScript client.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::collections::BTreeMap;

pub trait TypeDependencies {
    #[allow(unused_variables)]
    fn get_deps(dependencies: &mut BTreeMap<String, String>) {}
}

impl TypeDependencies for u32 {}
impl TypeDependencies for usize {}
impl TypeDependencies for String {}
impl TypeDependencies for bool {}
impl TypeDependencies for char {}
impl TypeDependencies for () {}
impl<T> TypeDependencies for Option<T> {}