Docs.rs
  • git-odb-0.21.0
    • git-odb 0.21.0
    • Docs.rs crate page
    • MIT/Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • Byron
    • Dependencies
      • btoi ^0.4.2 normal
      • git-features ^0.16.0 normal
      • git-hash ^0.5.0 normal
      • git-object ^0.13.0 normal
      • git-pack ^0.9.0 normal
      • tempfile ^3.1.0 normal
      • thiserror ^1.0.26 normal
      • pretty_assertions ^0.7.1 dev
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
☰
logo

Crate git_odb

Version 0.21.0

See all git_odb's items

  • Modules
  • Structs
  • Traits
  • Functions

Modules

  • alternate
  • compound
  • data
  • linked
  • loose
  • sink

Structs

  • Sink

Traits

  • Find
  • FindExt
  • Write

Functions

  • sink
Change settings

Crate git_odb[−][src]

Expand description

Git stores all of its data as Objects, which ata along with a hash over all data. Thus it’s an object store indexed by data with inherent deduplication: the same data will have the same hash, and thus occupy the same space within the store.

There are various flavours of object stores, all of which supporting iteration, reading and possibly writing.

  • loose::Store
    • A database storing one object per file, named by its hash, using zlib compression.
    • O(1) reads and writes, bound by IO operations per second
  • compound::Store
    • A database using a loose::Store for writes and multiple pack::Bundles for object reading. It can also refer to multiple additional compound::Store instances using git-alternates.
    • This is the database closely resembling the object database in a git repository, and probably what most people would want to use.
  • linked::Store
    • A database containing various compound::Stores as gathered from alternates files.

Re-exports

pub use git_pack as pack;

Modules

alternate

A file with directories of other git object databases to use when reading objects.

compound

An object database delegating object access to multiple contained object databases with loose and packed objects.

data

a pack data file

linked

An object database representing a list of compound databases commonly created using git alternates.

loose

An object database storing each object in a zlib compressed file with its hash in the path

sink

Structs

Sink

An object database equivalent to /dev/null, dropping all objects stored into it.

Traits

Find

Describe how object can be located in an object store with built-in facilities to supports packs specifically.

FindExt

An extension trait with convenience functions.

Write

Describe the capability to write git objects into an object store.

Functions

sink

Create a new Sink with compression disabled.

Results for FindExt

git_odb::FindExt
An extension trait with convenience functions.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.