1extern crate bytes;
2extern crate protobuf;
3
4pub use bytes::Bytes;
5use protobuf::ProtobufEnum;
6
7pub use proto::*;
8pub use wasmy_abi::*;
9
10mod proto;
11mod http_method;
12mod http_request;
13
14impl From<WasmMethod> for wasmy_abi::Method {
15 fn from(m: WasmMethod) -> Self {
16 m.value()
17 }
18}
19
20impl From<VmMethod> for wasmy_abi::Method {
21 fn from(m: VmMethod) -> Self {
22 m.value()
23 }
24}
25
26#[cfg(test)]
27mod tests {
28 #[test]
29 fn it_works() {
30 let result = 2 + 2;
31 assert_eq!(result, 4);
32 }
33}