Crates.io | nuts-directory |
lib.rs | nuts-directory |
version | 0.7.5 |
source | src |
created_at | 2023-10-02 06:18:45.468221 |
updated_at | 2024-11-08 06:45:10.335199 |
description | A backend implementation for nuts |
homepage | |
repository | https://github.com/drobin/nuts.git |
max_upload_size | |
id | 989625 |
size | 56,739 |
The nuts-directory crate implements a nuts backend where the blocks of the container are stored in a file hierarchy. Each block is identified by an id, which is basically a 16 byte random number.
When storing a block to disks the path to the file is derived from the id:
<first two chars>/<next two chars>/<remaining chars>
The header of the container is stored in the file
00/00/0000000000000000000000000000
.
Nuts backend implementation where the blocks of the container are stored
in a file hierarchy.
The CreateOptions
type is used to create a new backend instance, which
is passed to the Container::create
method. You need at least a
directory where the backend put its blocks. See the CreateOptions
documentation for further options.
The OpenOptions
type is used to open a backend instance, which is
passed to the Container::open
method. You need the directory where the
backend put its blocks.
You can check out the full license here.
This project is licensed under the terms of the MIT license.