Rantanen / serco

Rust service/consumer framework inspired by serde and WCF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serco

Service-Consumer framework for Rust

Inspired by serde (You couldn't tell from the name, right?) and WCF.



                     +-------------------------------+
                     | #[service_contract] MyService |
                     +-------------------------------+
                     | fn do_things(&self, String )  |
                     | fn get_stuff(&self) -> String |
                     +-------------------------------+
                                     A
                                     |
                  +-------------------------------------+
                  |                                     |
 +-----------------------------------+      +-------------------------+
 | #[service(MyService)] RealService |      | ServiceProxy<MyService> |
 +-----------------------------------+      +-------------------------+
 | impl MyService for Self           |      | impl MyService for Self |
 +-----------------------------------+      +-------------------------+
                  A                                     ^
                  |                                     '
      +------------------------+                        '
      | ServiceHost<MyService> |                        '
      +------------------------+            <<creates>> '
          A                                             '
          |  +--------------+                           '
          +--| HttpEndpoint |                           '
          |  +--------------+                           '
          |  +-------------+   <<connect>>   +----------------------+
          +--| TcpEndpoint | < - - - - - - - | TcpClient<MyService> |
          |  +-------------+                 +----------------------+
          |  +-------------------+
          +--| NamedPipeEndpoint |
             +-------------------+

About

Rust service/consumer framework inspired by serde and WCF


Languages

Language:Rust 100.0%