智眼模块Rust SDK
在 Cargo.toml
依赖项内添加:
toml
[dependencies]
libzymod-rust = "1.0.2"
在文件中添加:
extern crate zymod;
Upload使用的Proto文件如下:
```proto syntax = "proto3";
package zhiyan_proto;
service Upload{ rpc dataUpload(UploadRequest) returns (UploadResponse); }
message UploadRequest{ string name = 1; int64 datetime = 2; repeated float content =3;}
message UploadResponse{ string code = 1; string message = 2; } ```