Skip to content

Commit

Permalink
Upgrade rdma-core + bindgen (#43)
Browse files Browse the repository at this point in the history
ibverbs-sys 0.3.0+55.0: 55.0 + bindgen + pub consts + non-in-place build
ibverbs 0.9.0: -sys 0.3.0 + configurable work queue limits

rdma-core bump is for linux-rdma/rdma-core#1485
bindgen bump is for harryfei/which-rs#104

Includes #38, #39, #41, and #42.
  • Loading branch information
jonhoo authored Dec 27, 2024
1 parent 4c1cd7e commit b45ae84
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 127 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
matrix:
msrv: ["1.70.0"] # bindgen 1.69
msrv: ["1.82.0"] # bindgen 1.71
name: ubuntu / ${{ matrix.msrv }}
steps:
- uses: actions/checkout@v4
Expand Down
157 changes: 40 additions & 117 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Completion Queues, Queue-Pairs, Shared Receive Queues, Address Handles, and Memo
also handles sending and receiving data posted to QPs and SRQs, and getting completions from
CQs using polling and completions events.

A good place to start is to look at the programs in [`examples/`](ibverbs/examples/), and the upstream
[C examples]. You can test RDMA programs on modern Linux kernels even without specialized RDMA
hardware by using [SoftRoCE][soft].
A good place to start is to look at the programs in [`examples/`](ibverbs/examples/), and the
upstream [C examples]. You can test RDMA programs on modern Linux kernels even without specialized
RDMA hardware by using [SoftRoCE][soft].

## For the detail-oriented

Expand Down
8 changes: 5 additions & 3 deletions ibverbs-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "ibverbs-sys"
version = "0.2.1+52.0"
version = "0.3.0+55.0"
edition = "2021"
rust-version = "1.82" # unsafe extern in generated bindings

description = "Raw, FFI bindings for RDMA ibverbs through rdma-core"
readme = "../README.md"
Expand All @@ -23,9 +24,10 @@ license = "MIT OR Apache-2.0"
exclude = ["vendor/rdma-core/build/"]

[build-dependencies]
bindgen = "0.69.2"
bindgen = "0.71.1"
cmake = "0.1.50"

# to make -Zminimal-versions work
[target.'cfg(any())'.dependencies]
regex = "1.6"
# https://github.com/rust-lang/rust-bindgen/pull/3048
proc-macro2 = { version = "1.0.80", optional = true }
2 changes: 1 addition & 1 deletion ibverbs-sys/vendor/rdma-core
Submodule rdma-core updated 150 files
4 changes: 2 additions & 2 deletions ibverbs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibverbs"
version = "0.8.1"
version = "0.9.0"
edition = "2021"

description = "Bindings for RDMA ibverbs through rdma-core"
Expand All @@ -19,7 +19,7 @@ categories = ["network-programming", "api-bindings"]
license = "MIT OR Apache-2.0"

[dependencies]
ffi = { path = "../ibverbs-sys", package = "ibverbs-sys", version = "0.2.0" }
ffi = { path = "../ibverbs-sys", package = "ibverbs-sys", version = "0.3.0" }

[dependencies.serde]
version = "1.0.100"
Expand Down

0 comments on commit b45ae84

Please sign in to comment.