Skip to content

Commit

Permalink
Replace Circular with Oval
Browse files Browse the repository at this point in the history
Oval is a drop in replacement for ciruclar useful fixes merged.
Specificall it removes all occurences of unsound and unsafe behavior,
and so will allow for Miri testing.
  • Loading branch information
Posnet committed May 6, 2024
1 parent ab3605b commit 22cf762
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
circular = "0.3"
oval = "2.0"
cookie-factory = { version="0.3.0", optional=true }
nom = "7.0"
rusticata-macros = "4.0"
Expand All @@ -53,5 +53,5 @@ hex-literal = "0.4"
allowed_external_types = [
"nom",
"nom::*",
"circular::Buffer",
"oval::Buffer",
]
2 changes: 1 addition & 1 deletion src/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::pcap::parse_pcap_header;
use crate::pcapng::parse_sectionheaderblock;
use crate::traits::PcapReaderIterator;
use crate::{LegacyPcapReader, PcapNGReader};
use circular::Buffer;
use oval::Buffer;
use nom::Needed;
use std::io::Read;

Expand Down
2 changes: 1 addition & 1 deletion src/pcap/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::pcap::{
LegacyPcapBlock, PcapHeader,
};
use crate::traits::PcapReaderIterator;
use circular::Buffer;
use oval::Buffer;
use nom::{IResult, Needed, Offset};
use std::io::Read;

Expand Down
2 changes: 1 addition & 1 deletion src/pcapng/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::blocks::PcapBlockOwned;
use crate::error::PcapError;
use crate::pcapng::*;
use crate::traits::PcapReaderIterator;
use circular::Buffer;
use oval::Buffer;
use nom::{Needed, Offset};
use std::io::Read;

Expand Down

0 comments on commit 22cf762

Please sign in to comment.