Skip to content

Commit

Permalink
Merge pull request #1503 from microsoft/ab-prepare-for-crates.io
Browse files Browse the repository at this point in the history
[demikernel] Enhancement: prepare for publishing to crates.io
  • Loading branch information
anandbonde authored Feb 12, 2025
2 parents f8aaa1c + 322d346 commit 31c924b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dpdk_bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
description = "Rust Bindings for Libdpdk"
homepage = "https://aka.ms/demikernel"
repository = "https://github.com/demikernel/demikernel"
license = "MIT"
license-file = "LICENSE.txt"

[dependencies]
cfg-if = "1.0.0"
Expand Down
2 changes: 2 additions & 0 deletions dpdk_bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ We have tested this crate on Windows and Linux.
- Install DPDK.
- Set the env. var CFLAGS to add include path to DPDK installation for header files. (-I<path_to_dpdk_headers>)
- Set the env. var LIBDPDK_PATH to point to the root of the DPDK installation.
- Install Clang.
- Set the env. var CC to point to the clang compiler. Add the clang compiler path to PATH variable.

## Related crates:

Expand Down
2 changes: 0 additions & 2 deletions dpdk_bindings/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ fn os_build() -> Result<()> {
.allowlist_var("RTE_MAX_ETHPORTS")
.allowlist_var("RTE_MBUF_DEFAULT_BUF_SIZE")
.allowlist_var("RTE_PKTMBUF_HEADROOM")
.clang_arg("-std=c11")
.clang_arg("-mavx")
.header("wrapper.h")
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
Expand All @@ -321,7 +320,6 @@ fn os_build() -> Result<()> {
let mut builder: Build = cc::Build::new();
builder.opt_level(3);
builder.pic(true);
builder.flag("-std=c11");
builder.flag("-march=native");
builder.file("inlined.c");
for header_location in &header_locations {
Expand Down
1 change: 1 addition & 0 deletions xdp_bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ edition = "2021"
description = "Rust Bindings for XDP"
homepage = "https://aka.ms/demikernel"
repository = "https://github.com/demikernel/demikernel"
license-file = "LICENSE.txt"

[dependencies]
windows = { version = "0.57.0", features = [
Expand Down

0 comments on commit 31c924b

Please sign in to comment.