Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
[package]
name = "gapbuf"
version = "0.1.4"
authors = ["FrozenLib"]
name = "gap-buf"
version = "0.6.1"
authors = ["FrozenLib", "AhoyISki"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/frozenlib/gapbuf-rs"
documentation = "https://docs.rs/gapbuf/"
repository = "https://github.com/AhoyISki/gap-buf-rs"
documentation = "https://docs.rs/gap-buf/"
keywords = ["gap", "gapbuffer"]
categories = ["data-structures"]
description = "Generic gap buffer."
edition = "2021"

[features]
docs-rs = []
edition = "2024"

[dependencies]
bincode = { version = "2.0.1", optional = true }
unty = { version = "0.0.5", optional = true }

[dev-dependencies]
test-strategy = "0.2.0"
proptest = "1.0.0"

[features]
docs-rs = []
bincode = ["dep:bincode", "dep:unty"]

[package.metadata.docs.rs]
features = ["docs-rs"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# gapbuf-rs
# gap-buf-rs

[![Crates.io](https://img.shields.io/crates/v/gapbuf.svg)](https://crates.io/crates/gapbuf)
[![Docs.rs](https://docs.rs/gapbuf/badge.svg)](https://docs.rs/gapbuf)
[![Actions Status](https://github.com/frozenlib/gapbuf-rs/workflows/CI/badge.svg)](https://github.com/frozenlib/gapbuf-rs/actions)
[![Crates.io](https://img.shields.io/crates/v/gap-buf.svg)](https://crates.io/crates/gap-buf)
[![Docs.rs](https://docs.rs/gapbuf/badge.svg)](https://docs.rs/gap-buf)
[![Actions Status](https://github.com/AhoyISki/gap-buf-rs/workflows/CI/badge.svg)](https://github.com/AhoyISki/gap-buf-rs/actions)

Generic gap buffer implementation in Rust.

Expand All @@ -12,7 +12,7 @@ This type has methods similar to `Vec`.
## Examples

```rust
use gapbuf::gap_buffer;
use gap_buf::gap_buffer;

let mut b = gap_buffer![1, 2, 3];
b.insert(1, 10);
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
gapbuf = { path = "../" }
gap_buf = { path = "../" }
2 changes: 1 addition & 1 deletion benchmarks/benches/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extern crate test;

use self::test::Bencher;
use gapbuf::GapBuffer;
use gap_buf::GapBuffer;
use std::collections::VecDeque;

#[bench]
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use gapbuf::gap_buffer;
use gap_buf::gap_buffer;

fn main() {
let mut b = gap_buffer![1, 2, 3];
Expand Down
Loading