Commit Graph

  • 1e0ccf4279 Add check for = or null bytes in env variable key Lukas Kalbertodt 2021-07-26 22:45:55 +02:00
  • db2aebc270 Parse #[env] attribute and representing it in meta types Lukas Kalbertodt 2021-07-25 11:36:36 +02:00
  • 3c7376035c Add Config::from_file Lukas Kalbertodt 2021-07-25 10:56:46 +02:00
  • ebd8aba2fa Disallow Option<_> type for fields with #[nested] or #[default] Lukas Kalbertodt 2021-07-25 10:46:06 +02:00
  • 9c5990d803 Add Partial::is_empty and Partial::is_complete Lukas Kalbertodt 2021-07-25 09:54:19 +02:00
  • ca5bb2488f Add Builder type as convenient high level loading API Lukas Kalbertodt 2021-07-25 09:41:06 +02:00
  • 76373278b0 Remove Source trait and Config::from_sources Lukas Kalbertodt 2021-07-24 22:25:40 +02:00
  • 6aece589c4 Add toml::FormatOptions::comments Lukas Kalbertodt 2021-07-24 19:44:27 +02:00
  • 522494aa5c Fix derive macro for pub(crate) visibility Lukas Kalbertodt 2021-07-24 17:00:54 +02:00
  • 7561e82215 Update example Lukas Kalbertodt 2021-07-24 16:23:21 +02:00
  • ceb9799e55 Add toml module with format function for config templates Lukas Kalbertodt 2021-07-24 16:23:10 +02:00
  • b663e698ba Implement Display for meta::Integer and meta::Float Lukas Kalbertodt 2021-07-24 16:11:12 +02:00
  • 066e7a0023 Add meta::Field::optional Lukas Kalbertodt 2021-07-24 16:10:32 +02:00
  • 09cc848b94 Rename #[config(child)] to #[config(nested)] Lukas Kalbertodt 2021-07-24 14:51:02 +02:00
  • b71eaa0464 Add Config::META to access the configuration definition at runtime Lukas Kalbertodt 2021-07-24 18:48:13 +02:00
  • e3e90430f4 Remove File::toml and File::yaml Lukas Kalbertodt 2021-05-16 16:52:10 +02:00
  • 0d25489a31 Move error code to error.rs Lukas Kalbertodt 2021-05-16 16:09:49 +02:00
  • d11f18e5f0 Move File and FileFormat to the crate root Lukas Kalbertodt 2021-05-16 16:07:36 +02:00
  • b57382f546 Add some documentation Lukas Kalbertodt 2021-05-16 15:59:33 +02:00
  • 366fd3d10a Remove example module and doc-example feature Lukas Kalbertodt 2021-05-16 15:30:26 +02:00
  • 32fbfd3a5a Add Source trait and implement it for files (TOML and YAML for now) Lukas Kalbertodt 2021-05-16 15:27:47 +02:00
  • 6d1e9e99c6 Add #[default = "confique::Partial::empty"] attributes to child fields Lukas Kalbertodt 2021-05-16 14:57:44 +02:00
  • 8abc07bcda Add handling of nested configuration types via #[config(child)] Lukas Kalbertodt 2021-05-14 22:13:31 +02:00
  • 3fd3835fdf Error on unexpected extra tokens in attribute Lukas Kalbertodt 2021-05-14 21:23:39 +02:00
  • 0f37618c19 Rewrite everything to be based on derives (WIP) Lukas Kalbertodt 2021-05-14 16:30:50 +02:00
  • 0fcf36fd81 Remove requirement of having either an example or a default value Lukas Kalbertodt 2021-04-30 18:00:05 +02:00
  • c798049443 Require single config root object Lukas Kalbertodt 2021-04-30 17:51:06 +02:00
  • 5075b4df17 Add derive_for_all global attribute (defaulting to Debug) Lukas Kalbertodt 2021-04-29 23:45:40 +02:00
  • 651a06b252 Add typename attribute and refactor a bunch Lukas Kalbertodt 2021-04-29 23:18:22 +02:00
  • 5d3ccd7b42 Add support for #[derive] annotations Lukas Kalbertodt 2021-04-29 20:15:30 +02:00
  • 32f05abdca Add missing visibility modifier Lukas Kalbertodt 2021-04-29 19:46:51 +02:00
  • 24dec3b037 Add #![visibility = "..."] attribute to specify visibility Lukas Kalbertodt 2021-04-29 19:30:19 +02:00
  • bfab0e8798 Add example module for documentation Lukas Kalbertodt 2021-04-29 19:00:36 +02:00
  • 1ae45a3e7c Move TryFromError from generated code into main crate Lukas Kalbertodt 2021-04-29 18:41:17 +02:00
  • 537a8b7725 Add version from other project Lukas Kalbertodt 2021-04-29 18:09:26 +02:00
  • dd52b56548 Initial commit with empty Cargo project Lukas Kalbertodt 2021-04-29 17:23:54 +02:00