Skip to content

Commit 4786797

Browse files
committed
fix build err.
Signed-off-by: Klaus Ma <[email protected]>
1 parent 922402a commit 4786797

File tree

10 files changed

+5741
-31964
lines changed

10 files changed

+5741
-31964
lines changed

Cargo.lock

+108
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+16
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,19 @@ members = [
88
]
99

1010
[workspace.dependencies]
11+
tracing = "*"
12+
tracing-subscriber = { version = "*", features = ["env-filter", "local-time"] }
13+
14+
clap = { version = "4.5", features = ["derive"] }
15+
serde = { version = "1.0", features = ["derive"] }
16+
toml = { version = "0.8"}
17+
tokio = { version = "1", features = ["full"] }
18+
async-trait = "0.1"
19+
thiserror = "2.0"
20+
serde_json = "1"
21+
22+
reqwest = { version = "0.12", features = ["json"] }
23+
http = "1.0"
24+
bytes = "1"
25+
base64 = "0.22"
26+
url = { version = "2", features = ["serde"] }

hcactl/README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# MyHCA
1+
# hcactl
22

3-
MyHCA dependent on `libverbs` and `libudev` to provide tools &amp; lib for the information of HCAs:
4-
5-
* lshca: a command line to list HCA information
6-
* libhca: a library to get HCA information
3+
hcactl dependent on `libverbs` and `libudev` to provide tools &amp; lib for the information of HCAs:
74

5+
* hcactl: a command line to list HCA information
86

97
## Install
108

libonm/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7+
8+
[build-dependencies]
9+
bindgen = "0.70"
10+
cc = "1.0"

libonm/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn main() {
3434
.prepend_enum_name(false)
3535
.size_t_is_usize(true)
3636
.generate_comments(true)
37-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
37+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
3838
.generate()
3939
.expect("Unable to generate bindings");
4040

@@ -51,7 +51,7 @@ fn main() {
5151
.blocklist_type("u16")
5252
.blocklist_type("u32")
5353
.blocklist_type("u64")
54-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
54+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
5555
.generate()
5656
.expect("Unable to generate bindings");
5757

0 commit comments

Comments
 (0)