Skip to content

Commit

Permalink
fix kani; refactor; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
somethingelseentirely committed Jan 19, 2025
1 parent 69bb271 commit abbaa59
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anybytes"
version = "0.14.0"
version = "0.15.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/triblespace/anybytes"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ including other byte handling crates `Bytes`, mmap-ed files,
| Crate | Active | Extensible | mmap support | Zerocopy Integration | Pyo3 Integration | kani verified |
| ----- | ------ | ---------- | ------------ | -------------------- | ---------------- | -------- |
| anybytes |||||| 🚧 |
| [bytes](https://crates.io/crates/bytes) ||| | |||
| [bytes](https://crates.io/crates/bytes) ||| [^1] | [^1] |||
| [ownedbytes](https://crates.io/crates/ownedbytes) |||||||
| [minibytes](https://crates.io/crates/sapling-minibytes) |[^1] ||||||
| [minibytes](https://crates.io/crates/sapling-minibytes) |[^2] ||||||

[^1]: Recently published again.
[^1]: It is still using a V-Table under the hood, with a new "Owned Bytes" variant,
with all the downsides/overhead of a V-Table remaining.
[^2]: Recently published again.

## Acknowledgements
This library started as a fork of the minibyte library in facebooks [sapling scm](https://github.com/facebook/sapling).
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#![doc = include_str!("../README.md")]

pub mod bytes;
mod owners;
mod sources;

#[cfg(feature = "zerocopy")]
pub mod view;
Expand Down
2 changes: 1 addition & 1 deletion src/owners.rs → src/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ mod verification {
}

#[cfg(feature = "zerocopy")]
#[derive(zerocopy::FromZeroes, zerocopy::FromBytes, zerocopy::IntoBytes, Clone, Copy)]
#[derive(zerocopy::TryFromBytes, zerocopy::IntoBytes, zerocopy::Immutable, Clone, Copy)]
#[repr(C)]
struct ComplexZC {
a: u64,
Expand Down

0 comments on commit abbaa59

Please sign in to comment.