Lukas Kalbertodt
e2dded17fa
Change parse_env error type from Debug to impl std::error::Error
...
This is the more appropriate trait I think and should work well for
most real world use cases.
2022-11-06 11:23:57 +01:00
Lukas Kalbertodt
0e47eb7acf
Format code
...
This is `cargo fmt` but with lots of changes reverted and some adjusted.
2022-10-24 10:13:06 +02:00
Lukas Kalbertodt
bc03ecaf4e
Remove a bunch of cfg attributes
2022-10-21 13:13:32 +02:00
Lukas Kalbertodt
9b9610a6ac
Add JSON5 support
2022-10-21 11:52:53 +02:00
Lukas Kalbertodt
5c3315b015
Move to Rust edition 2021
2022-10-14 16:42:49 +02:00
Lukas Kalbertodt
eb03488973
Fix using env with deserialize_with
...
Fixes #2
I simply forgot to use the `deserialize_with` attribute for the env
deserialization. The previous code was somewhat weirdly coded in that
we would always deserialize `Option<T>` (as it's a partial type) and
the "env variable not present" info would travel through the
deserializer to the `Option<T> as Deserialize` impl. Now it's more
straight forward.
2022-10-14 16:33:37 +02:00
Lukas Kalbertodt
4f4f42e8f3
Disable some code (and fix others) when no features are enabled
2021-07-28 12:38:50 +02:00
Lukas Kalbertodt
aa5eb06f49
Add Partial::from_env and implement it in derive macro
2021-07-27 01:12:57 +02:00
Lukas Kalbertodt
76373278b0
Remove Source trait and Config::from_sources
...
I'm not sure about a good high level API.
2021-07-24 22:25:40 +02:00
Lukas Kalbertodt
0d25489a31
Move error code to error.rs
2021-05-16 16:09:49 +02:00