Skip to content

Commit

Permalink
catchup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-noland committed Dec 1, 2024
1 parent a4a49e9 commit 14441b7
Show file tree
Hide file tree
Showing 8 changed files with 133 additions and 192 deletions.
273 changes: 102 additions & 171 deletions Cargo.lock

Large diffs are not rendered by default.

21 changes: 13 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,22 @@ resolver = "2"

[workspace.dependencies]

bindgen = { version = "0.70.1" }
bolero = { version = "=0.10.1" } # TODO: update as soon as resolution bug with 0.11 or better is fixed
# internal deps
dpdk-sys = { path = "./dpdk-sys" }
dpdk = { path = "./dpdk" }
dpdk-sysroot-helper = { path = "./dpdk-sysroot-helper" }
errno = { path = "./errno" }
net = { path = "./net" }

# external deps
bindgen = { version = "0.70.1", default-features = false }
bitflags = { version = "2.6.0", default-features = false }
bolero = { version = "0.12.0", default-features = false, features = ["alloc"] }
criterion = { version = "0.5.1", default-features = true }
doxygen-rs = { version = "0.4.0" }
doxygen-rs = { version = "0.4.0", default-features = false }
etherparse = { version = "0.16.0", default-features = false, features = [] }
rand = { version = "0.8.5", default-features = false, features = [] }
rstest = { version = "0.23.0", default-features = false, features = [] }
serde = { version = "1.0.213", default-features = false, features = ["derive", "alloc", "rc"] }
thiserror = { version = "2.0.2", default-features = false }
tracing = { version = "0.1.40", default-features = false, features = ["attributes"] }
tracing-subscriber = { version = "0.3.18" }
tracing-test = { version = "0.2.5" }
bitflags = { version = "2.6.0", default-features = false }

tracing-subscriber = { version = "0.3.18", default-features = false }
1 change: 1 addition & 0 deletions dpdk-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
edition = "2021"
description = "Low-level bindings to the Data Plane Development Kit (DPDK)"
publish = false
resolver = "2"

[lib]
crate-type = ["rlib"]
Expand Down
10 changes: 5 additions & 5 deletions dpdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "dpdk"
version = "0.1.0"
edition = "2021"
publish = false
resolver = "2"

[features]
default = ["serde", "tracing_max_level_trace", "tracing_release_max_level_debug"]
Expand All @@ -24,15 +25,14 @@ tracing_release_max_level_warn = ["tracing/release_max_level_warn"]

[dependencies]

dpdk-sys = { path = "../dpdk-sys" }
errno = { path = "../errno" }
net = { path = "../net" }
dpdk-sys = { workspace = true }
errno = { workspace = true }
net = { workspace = true }

etherparse = { workspace = true, default-features = false, features = [] }
serde = { workspace = true, optional = true }
thiserror = { workspace = true }
tracing = { workspace = true, features = ["attributes"] }
bitflags = { workspace = true }

[build-dependencies]
dpdk-sysroot-helper = { path = "../dpdk-sysroot-helper" }
dpdk-sysroot-helper = { workspace = true }
3 changes: 1 addition & 2 deletions dpdk/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

//! Ethernet device management.
use bitflags::*;

use alloc::format;
use alloc::vec::Vec;
use bitflags::*;
use core::ffi::{c_uint, CStr};
use core::fmt::{Debug, Display, Formatter};
use core::marker::PhantomData;
Expand Down
1 change: 1 addition & 0 deletions errno/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "errno"
version = "0.1.0"
edition = "2021"
publish = false
resolver = "2"

[dependencies]

Expand Down
1 change: 1 addition & 0 deletions net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "net"
version = "0.0.1"
edition = "2021"
publish = false
resolver = "2"

[[bench]]
name = "parse"
Expand Down
15 changes: 9 additions & 6 deletions scratch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ name = "scratch"
version = "0.1.0"
edition = "2021"
publish = false
resolver = "2"

[dependencies]
dpdk-sys = { path = "../dpdk-sys" }
dpdk = { path = "../dpdk" }

rand = { version = "0.8.5" }
thiserror = { workspace = true }
# internal
dpdk-sys = { workspace = true }
dpdk = { workspace = true }

# external
rand = { version = "0.8.5", default-features = true } # non-workspace to prevent pulling in std in other crates
tracing = { workspace = true, features = ["attributes"] }
tracing-subscriber = { workspace = true }
tracing-subscriber = { workspace = true, features = ["fmt"] }

[build-dependencies]
dpdk-sysroot-helper = { path = "../dpdk-sysroot-helper" }
dpdk-sysroot-helper = { workspace = true }

0 comments on commit 14441b7

Please sign in to comment.