Skip to content

Commit

Permalink
Merge pull request #215 from getditto/pa/bytes
Browse files Browse the repository at this point in the history
Add ABI-stable bytes::Bytes lookalike
  • Loading branch information
p-avital authored May 29, 2024
2 parents d35ad82 + 2a7be39 commit e0c535d
Show file tree
Hide file tree
Showing 4 changed files with 399 additions and 5 deletions.
58 changes: 56 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ internal-tests = [
[dev-dependencies]
safer-ffi.path = "."
safer-ffi.features = ["internal-tests"]
rand = "0.8.5"

[dependencies]
async-compat.optional = true
Expand Down
9 changes: 6 additions & 3 deletions src/_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ cfg_alloc! {
mod boxed;
}

pub
mod bytes;

#[doc(inline)]
pub use self::c_char_module::c_char;
#[path = "c_char.rs"]
Expand Down Expand Up @@ -290,6 +293,9 @@ pub use dyn_traits::futures;
pub
mod libc;

pub
mod option;

pub
mod ptr;

Expand All @@ -307,9 +313,6 @@ use tuple::*;
pub
mod tuple;

pub
mod option;

cfg_alloc! {
#[doc(inline)]
pub use string::String;
Expand Down
Loading

0 comments on commit e0c535d

Please sign in to comment.