summaryrefslogtreecommitdiff
path: root/src/server.rs
AgeCommit message (Collapse)AuthorFilesLines
2022-09-09chore: tidy up things to satisfy clippyLars Wirzenius1-1/+1
Sponsored-by: author
2022-04-16refactor: rename Checksum to LabelLars Wirzenius1-2/+2
Label is a clearer and more accurate name for the type now that it is not just a checksum. Also, serialize a Label in tests, rather than using string literals. This is more correct, and we'll be changing serialization later. Sponsored-by: author
2021-12-31docs: add documentation comments to crateLars Wirzenius1-1/+23
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-1/+3
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-04-29feat: improve error messagesLars Wirzenius1-6/+6
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-03-27refactor: drop unnecessary conversions to the same typeLars Wirzenius1-3/+3
2021-03-24refactor(src/server.rs): drop use of anyhow::ResultLars Wirzenius1-3/+12
anyhow is appropriate for applications, not libraries. Use plain Result and the already existing ServerConfigError instead.
2021-03-03fix: don't allow unknown fields in configuration filesLars Wirzenius1-0/+1
2021-03-03refactor: rename Config, ConfigError to show they are for serverLars Wirzenius1-8/+8
2021-02-16refactor: move server config into src/server.rsLars Wirzenius1-0/+46
2021-02-04refactor: have per-module error enumsLars Wirzenius1-1/+1
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-10-14refactor: rename Chunk to DataChunkLars Wirzenius1-3/+3
2020-09-18use to_string method for ChunkId instead of format! macroLars Wirzenius1-1/+1
2020-09-18feat: add a rudimentary chunk server main programLars Wirzenius1-3/+9
Also, add an initial subplot to document and verify acceptance criteria.
2020-09-18feat: representations of responses for server operationsLars Wirzenius1-0/+78