This commit is contained in:
aozhiwei 2021-12-09 19:14:36 +08:00
parent febb611def
commit 01725dc14e
5 changed files with 34 additions and 2 deletions

3
.gitmodules vendored
View File

@ -10,3 +10,6 @@
[submodule "third_party/q7"]
path = third_party/q7
url = git@git.kingsome.cn:server_common/q7.git
[submodule "third_party/r9"]
path = third_party/r9
url = git@git.kingsome.cn:server_common/r9.git

View File

@ -4,6 +4,7 @@ option go_package = ".;mt";
message AliKeyConf
{
optional int32 value = 3;
optional string access_keyid = 1;
optional string access_secret = 2;
}

View File

@ -6,3 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
protobuf = "2.25.2"
[build-dependencies]
protobuf-codegen-pure = "2.25.2"

View File

@ -1,3 +1,26 @@
fn main() {
println!("Hello, world!");
mod mt;
use protobuf::Message;
pub struct Test {
intVal: i64,
}
pub struct XValue {
intVal: i64,
testVal: <'a> ::Test,
// pub data: &'static dyn std::any::Any,
}
impl XValue {
}
fn main() {
let mut msg = mt::AliKeyConf::new();
let mut testVal = Test{intVal:100};
let mut val = XValue{intVal: 0,
testVal: testVal};
//let keyid = "abcf";
msg.set_access_keyid("abcdf".to_string());
println!("Hello, world!{}", msg.get_access_keyid());
}

1
third_party/r9 vendored Submodule

@ -0,0 +1 @@
Subproject commit 0da572a5fa5e45f1343529f8e04b722182b0b01f