Commit Graph

10 Commits

Author SHA1 Message Date
Lukas Kalbertodt
0d25489a31 Move error code to error.rs 2021-05-16 16:09:49 +02:00
Lukas Kalbertodt
d11f18e5f0 Move File and FileFormat to the crate root
The crate root is not super busy yet, so it's more convenient to have
no public sub modules.
2021-05-16 16:07:36 +02:00
Lukas Kalbertodt
b57382f546 Add some documentation 2021-05-16 15:59:33 +02:00
Lukas Kalbertodt
32fbfd3a5a Add Source trait and implement it for files (TOML and YAML for now) 2021-05-16 15:27:47 +02:00
Lukas Kalbertodt
8abc07bcda Add handling of nested configuration types via #[config(child)] 2021-05-14 22:13:31 +02:00
Lukas Kalbertodt
0f37618c19 Rewrite everything to be based on derives (WIP) 2021-05-14 16:30:50 +02:00
Lukas Kalbertodt
bfab0e8798 Add example module for documentation
It currently doesn't show anything as all items are pub(crate).
2021-04-29 19:00:36 +02:00
Lukas Kalbertodt
1ae45a3e7c Move TryFromError from generated code into main crate
There is not really a point in generating this type for every
invocation. Also reduces the number of things magically generated.
2021-04-29 18:41:17 +02:00
Lukas Kalbertodt
537a8b7725 Add version from other project
This was mostly what I implemented as utility library for another
project. But I figured I can also extract it as it's useful on its
own.
2021-04-29 18:09:26 +02:00
Lukas Kalbertodt
dd52b56548 Initial commit with empty Cargo project 2021-04-29 17:23:54 +02:00