summaryrefslogtreecommitdiff
path: root/src/chunker.rs
AgeCommit message (Collapse)AuthorFilesLines
2021-12-31docs: add documentation comments to crateLars Wirzenius1-1/+8
Also, make it an error for a public symbol to not be documented. Sponsored-by: author
2021-09-18refactor: define a Checksum type and use it where appropriateLars Wirzenius1-2/+2
This will make it harder to compare, say, a SHA-256 and a SHA3, later, when we add more checksum types. Sponsored-by: author
2021-07-21Replace ChunkerResult with plain ResultAlexander Batischev1-5/+3
2021-05-29refactor: make metadata be part of datachunkLars Wirzenius1-6/+6
This makes it harder to lose the metadata for a chunk, or to use unrelated metadata and chunk. Also, soon I will refactor things for encrypting chunks, which will need metadata embedded in the encrypted chunk. Sponsored-by: author
2021-04-29feat: improve error messagesLars Wirzenius1-4/+10
All unclear error messages should now be clearer. For example, all the ones related to a file mention the file name and the attempted operation that failed.
2021-02-04refactor: have per-module error enumsLars Wirzenius1-3/+11
This means that a function that parses step bindings can't return an error that the document is missing a title. Such an error return would be nonsensical, and we use the Rust type system to prevent it, at a small cost of being a bit verbose. Additional benefit is that the library portion of Obnam doesn't return anyhow::Result values anymore.
2020-11-09refactor: move sha256 checksumming to its own moduleLars Wirzenius1-6/+2
2020-11-08feat(src/chunker.rs): add abstraction for chunking live dataLars Wirzenius1-0/+60
This is very rudimentary for now