1
This commit is contained in:
parent
febb611def
commit
01725dc14e
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -10,3 +10,6 @@
|
|||||||
[submodule "third_party/q7"]
|
[submodule "third_party/q7"]
|
||||||
path = third_party/q7
|
path = third_party/q7
|
||||||
url = git@git.kingsome.cn:server_common/q7.git
|
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
|
||||||
|
@ -4,6 +4,7 @@ option go_package = ".;mt";
|
|||||||
|
|
||||||
message AliKeyConf
|
message AliKeyConf
|
||||||
{
|
{
|
||||||
|
optional int32 value = 3;
|
||||||
optional string access_keyid = 1;
|
optional string access_keyid = 1;
|
||||||
optional string access_secret = 2;
|
optional string access_secret = 2;
|
||||||
}
|
}
|
||||||
|
@ -6,3 +6,7 @@ edition = "2021"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
protobuf = "2.25.2"
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
protobuf-codegen-pure = "2.25.2"
|
@ -1,3 +1,26 @@
|
|||||||
fn main() {
|
mod mt;
|
||||||
println!("Hello, world!");
|
|
||||||
|
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
1
third_party/r9
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 0da572a5fa5e45f1343529f8e04b722182b0b01f
|
Loading…
x
Reference in New Issue
Block a user