Skip to content

Commit

Permalink
fix build err.
Browse files Browse the repository at this point in the history
Signed-off-by: Klaus Ma <klausm@nvidia.com>
  • Loading branch information
k82cn committed Nov 22, 2024
1 parent 922402a commit 4786797
Show file tree
Hide file tree
Showing 10 changed files with 5,741 additions and 31,964 deletions.
108 changes: 108 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,19 @@ members = [
]

[workspace.dependencies]
tracing = "*"
tracing-subscriber = { version = "*", features = ["env-filter", "local-time"] }

clap = { version = "4.5", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
toml = { version = "0.8"}
tokio = { version = "1", features = ["full"] }
async-trait = "0.1"
thiserror = "2.0"
serde_json = "1"

reqwest = { version = "0.12", features = ["json"] }
http = "1.0"
bytes = "1"
base64 = "0.22"
url = { version = "2", features = ["serde"] }
8 changes: 3 additions & 5 deletions hcactl/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# MyHCA
# hcactl

MyHCA dependent on `libverbs` and `libudev` to provide tools &amp; lib for the information of HCAs:

* lshca: a command line to list HCA information
* libhca: a library to get HCA information
hcactl dependent on `libverbs` and `libudev` to provide tools &amp; lib for the information of HCAs:

* hcactl: a command line to list HCA information

## Install

Expand Down
4 changes: 4 additions & 0 deletions libonm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]

[build-dependencies]
bindgen = "0.70"
cc = "1.0"
4 changes: 2 additions & 2 deletions libonm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn main() {
.prepend_enum_name(false)
.size_t_is_usize(true)
.generate_comments(true)
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.generate()
.expect("Unable to generate bindings");

Expand All @@ -51,7 +51,7 @@ fn main() {
.blocklist_type("u16")
.blocklist_type("u32")
.blocklist_type("u64")
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.generate()
.expect("Unable to generate bindings");

Expand Down
Loading

0 comments on commit 4786797

Please sign in to comment.