Skip to content

Commit

Permalink
Exposing BorrwedRange's fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ecton committed Feb 14, 2022
1 parent 4af9132 commit 922005c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.3.1

### Changed

- `BorrowedRange` now exposes its fields as public. Without this, there was no
way to implement `BorrowByteRange` outside of this crate.
- This crate now explicitly states its minimum supported Rust version (MSRV).
The MSRV did not change as part of this update. It previously was not
documented.

## v0.3.0

### Breaking Changes
Expand All @@ -22,8 +32,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `TreeFile::push()` has been renamed `TreeFile::set()` and now accepts any type
that can convert to `ArcBytes<'static>.

### Changed

### Added

- `AnyFileManager` has been added to make it easy to select between memory or
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ criterion = { version = "0.3", features = ["html_reports"] }
ubyte = "0.10"

nebari = { path = "../nebari" }
pot = { git = "https://github.com/khonsulabs/pot.git", branch = "main" }
pot = "1.0.0"

serde_json = { version = "1", optional = true }
rusqlite = { version = "0.26", optional = true }
Expand Down
3 changes: 2 additions & 1 deletion nebari/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[package]
name = "nebari"
version = "0.3.0"
version = "0.3.1"
edition = "2018"
description = "ACID-compliant database storage implementation using an append-only file format."
repository = "https://github.com/khonsulabs/nebari"
license = "MIT OR Apache-2.0"
keywords = ["btree", "database"]
categories = ["database-implementations"]
readme = "../README.md"
rust-version = "1.56.1"

[features]
default = []
Expand Down
6 changes: 4 additions & 2 deletions nebari/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1516,8 +1516,10 @@ impl RangeBounds<u64> for U64Range {
/// A borrowed range in byte form.
#[derive(Debug, Clone)]
pub struct BorrowedRange<'a> {
start: Bound<&'a [u8]>,
end: Bound<&'a [u8]>,
/// The start bound for this range.
pub start: Bound<&'a [u8]>,
/// The end bound for this range.
pub end: Bound<&'a [u8]>,
}

/// Borrows a range.
Expand Down

0 comments on commit 922005c

Please sign in to comment.