Skip to content

Commit

Permalink
chore: change crate name to prepare for cargo publish
Browse files Browse the repository at this point in the history
Signed-off-by: feathercyc <[email protected]>
  • Loading branch information
GG2002 committed Aug 22, 2024
1 parent 9f4d89f commit ebb8e7b
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 29 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

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

11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[package]
name = "interval_map"
version = "0.1.0"
name = "rb-interval-map"
version = "0.1.2"
edition = "2021"
authors = ["feathercyc [email protected]"]
description = "`interval_map` is a map based on interval tree."
description = "`rb-interval-map` is a map based on interval tree."
repository = "https://github.com/xline-kv/interval_map"
license = "Apache-2.0"
keywords = ["Interval Tree", "Augmented Tree", "Red-Black Tree"]
keywords = ["IntervalTree", "AugmentedTree", "RedBlackTree"]
documentation = "https://docs.rs/rb-interval-map"
homepage = "https://github.com/xline-kv/interval_map"

[dependencies]
serde = { version = "1.0", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion benches/bench.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use criterion::{criterion_group, criterion_main, Bencher, Criterion};
use interval_map::{Interval, IntervalMap};
use rand::{rngs::StdRng, Rng, SeedableRng};
use rb_interval_map::{Interval, IntervalMap};
use std::hint::black_box;

struct IntervalGenerator {
Expand Down
2 changes: 1 addition & 1 deletion examples/new_point.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use interval_map::{Interval, IntervalMap};
use rb_interval_map::{Interval, IntervalMap};

trait Point<T> {
fn new_point(x: T) -> Interval<T>;
Expand Down
2 changes: 1 addition & 1 deletion examples/string_affine.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::cmp;

use interval_map::{Interval, IntervalMap};
use rb_interval_map::{Interval, IntervalMap};

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum StringAffine {
Expand Down
4 changes: 2 additions & 2 deletions src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap, Entry};
/// use rb_interval_map::{Interval, IntervalMap, Entry};
///
/// let mut map = IntervalMap::new();
/// assert!(matches!(map.entry(Interval::new(1, 2)), Entry::Vacant(_)));
Expand Down Expand Up @@ -71,7 +71,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap, Entry};
/// use rb_interval_map::{Interval, IntervalMap, Entry};
///
/// let mut map = IntervalMap::new();
///
Expand Down
18 changes: 9 additions & 9 deletions src/intervalmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap};
/// use rb_interval_map::{Interval, IntervalMap};
///
/// let mut map = IntervalMap::new();
/// assert_eq!(map.insert(Interval::new(1, 3), 1), None);
Expand All @@ -81,7 +81,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap};
/// use rb_interval_map::{Interval, IntervalMap};
///
/// let mut map = IntervalMap::new();
/// map.insert(Interval::new(1, 3), 1);
Expand Down Expand Up @@ -110,7 +110,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap};
/// use rb_interval_map::{Interval, IntervalMap};
///
/// let mut map = IntervalMap::new();
/// map.insert(Interval::new(1, 3), ());
Expand Down Expand Up @@ -138,7 +138,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap};
/// use rb_interval_map::{Interval, IntervalMap};
///
/// let mut map = IntervalMap::new();
/// map.insert(Interval::new(1, 3), ());
Expand Down Expand Up @@ -170,7 +170,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap};
/// use rb_interval_map::{Interval, IntervalMap};
///
/// let mut map = IntervalMap::new();
/// map.insert(Interval::new(1, 3), ());
Expand All @@ -197,7 +197,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap};
/// use rb_interval_map::{Interval, IntervalMap};
///
/// let mut map = IntervalMap::new();
/// map.insert(Interval::new(1, 3), 1);
Expand All @@ -216,7 +216,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap};
/// use rb_interval_map::{Interval, IntervalMap};
///
/// let mut map = IntervalMap::new();
/// map.insert(Interval::new(3, 5), 0);
Expand Down Expand Up @@ -256,7 +256,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap};
/// use rb_interval_map::{Interval, IntervalMap};
///
/// let mut map = IntervalMap::new();
/// map.insert(Interval::new(3, 5), 0);
Expand Down Expand Up @@ -297,7 +297,7 @@ where
///
/// # Example
/// ```rust
/// use interval_map::{Interval, IntervalMap, Entry};
/// use rb_interval_map::{Interval, IntervalMap, Entry};
///
/// let mut map = IntervalMap::new();
///
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//! # Example
//!
//! ```rust
//! use interval_map::{Interval, IntervalMap};
//! use rb_interval_map::{Interval, IntervalMap};
//!
//! let mut map = IntervalMap::new();
//! let int = Interval::new(1, 2);
Expand Down

0 comments on commit ebb8e7b

Please sign in to comment.