Skip to content

Commit

Permalink
general cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkirishcoder committed Feb 26, 2022
1 parent 34a01a3 commit 74ab2b5
Show file tree
Hide file tree
Showing 90 changed files with 498 additions and 6,174 deletions.
7 changes: 1 addition & 6 deletions bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Benchmarks for Capsule.

[dev-dependencies]
anyhow = "1.0"
capsule = { version = "0.1", path = "../core", features = ["testils"] }
capsule = { version = "0.2", path = "../core", features = ["testils"] }
criterion = "0.3"
proptest = "1.0"

Expand All @@ -20,11 +20,6 @@ name = "packets"
path = "packets.rs"
harness = false

[[bench]]
name = "combinators"
path = "combinators.rs"
harness = false

[[bench]]
name = "mbuf"
path = "mbuf.rs"
Expand Down
229 changes: 0 additions & 229 deletions bench/combinators.rs

This file was deleted.

2 changes: 1 addition & 1 deletion bench/mbuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

use anyhow::Result;
use capsule::Mbuf;
use capsule::packets::Mbuf;
use criterion::{criterion_group, criterion_main, Criterion};

const BATCH_SIZE: usize = 100;
Expand Down
6 changes: 4 additions & 2 deletions bench/packets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
*/

use anyhow::Result;
use capsule::fieldmap;
use capsule::packets::ethernet::Ethernet;
use capsule::packets::ip::v4::Ipv4;
use capsule::packets::ip::v6::{Ipv6, SegmentRouting};
use capsule::packets::{Ethernet, Packet, Udp4};
use capsule::packets::udp::Udp4;
use capsule::packets::{Mbuf, Packet};
use capsule::testils::criterion::BencherExt;
use capsule::testils::proptest::*;
use capsule::testils::{PacketExt, Rvg};
use capsule::{fieldmap, Mbuf};
use criterion::{criterion_group, criterion_main, Criterion};
use proptest::prelude::*;
use std::net::Ipv6Addr;
Expand Down
24 changes: 8 additions & 16 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "capsule"
version = "0.1.5"
version = "0.2.0"
authors = ["Capsule Developers <[email protected]>"]
license = "Apache-2.0"
edition = "2018"
Expand All @@ -23,24 +23,17 @@ doctest = false
anyhow = "1.0"
async-channel = "1.6"
async-executor = "1.4"
capsule-ffi = { version = "0.1.5", path = "../ffi" }
capsule-macros = { version = "0.1.5", path = "../macros" }
capsule-ffi = { version = "0.2.0", path = "../ffi" }
capsule-macros = { version = "0.2.0", path = "../macros" }
clap = "2.33"
criterion = { version = "0.3", optional = true }
futures-lite = "1.11"
futures-preview = "=0.3.0-alpha.19"
futures-lite = "1.12"
libc = "0.2"
metrics-core = { version = "0.5", optional = true }
metrics-runtime = { version = "0.13", optional = true, default-features = false }
once_cell = "1.7"
once_cell = "1.9"
proptest = { version = "1.0", optional = true }
regex = "1"
regex = "1.5"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
tokio = "=0.2.0-alpha.6"
tokio-executor = { version = "=0.2.0-alpha.6", features = ["current-thread", "threadpool"] }
tokio-net = { version = "=0.2.0-alpha.6", features = ["signal"] }
tokio-timer = "=0.3.0-alpha.6"
toml = "0.5"
tracing = "0.1"

Expand All @@ -49,10 +42,9 @@ criterion = "0.3"
proptest = { version = "1.0", default-features = false, features = ["default-code-coverage"] }

[features]
default = ["metrics"]
default = []
compile_failure = [] # compiler tests to check mutability rules are followed
full = ["metrics", "pcap-dump", "testils"]
metrics = ["metrics-core", "metrics-runtime"]
full = ["pcap-dump", "testils"]
pcap-dump = []
testils = ["criterion", "proptest"]

Expand Down
56 changes: 0 additions & 56 deletions core/src/batch/emit.rs

This file was deleted.

Loading

0 comments on commit 74ab2b5

Please sign in to comment.