I'm losing my mind with this issue, please check out and tell if I did something dumb. This code should work:
"release": "postgres://kitty:hackme@localhost:5432/kittybox"
Figment {
profile: Profile(
Uncased {
string: "release",
},
),
metadata: {
Tag(Default, 1): Metadata {
name: "Rocket Config",
source: Some(
Code(
Location {
file: "/home/kittyandrew/.cargo/registry/src/github.com-1ecc6299db9ec823/figment-0.9.4/src/figment.rs",
line: 112,
col: 24,
},
),
),
interpolater: ,
},
Tag(Default, 2): Metadata {
name: "TOML file",
source: Some(
File(
"/home/kittyandrew/dev/Kitty-API/Rocket.toml",
),
),
interpolater: ,
},
Tag(Default, 3): Metadata {
name: "environment variable(s)",
source: Some(
Code(
Location {
file: "/home/kittyandrew/.cargo/git/checkouts/rocket-8bf16d9ca7e90bdc/1f1f44f/core/lib/src/config/config.rs",
line: 194,
col: 14,
},
),
),
interpolater: ,
},
Tag(Default, 5): Metadata {
name: "Default",
source: Some(
Code(
Location {
file: "/home/kittyandrew/.cargo/registry/src/github.com-1ecc6299db9ec823/figment-0.9.4/src/figment.rs",
line: 112,
col: 24,
},
),
),
interpolater: ,
},
},
value: Ok(
{
Profile(
Uncased {
string: "default",
},
): {
"address": String(
Tag(Default, 1),
"127.0.0.1",
),
"cli_colors": Bool(
Tag(Default, 1),
true,
),
"ctrlc": Bool(
Tag(Default, 1),
true,
),
"keep_alive": Num(
Tag(Default, 1),
U32(
5,
),
),
"limits": Dict(
Tag(Default, 1),
{
"forms": Num(
Tag(Default, 1),
U64(
32768,
),
),
},
),
"log_level": String(
Tag(Default, 1),
"critical",
),
"port": Num(
Tag(Default, 1),
U16(
8000,
),
),
"secret_key": Array(
Tag(Default, 1),
[
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
Num(
Tag(Default, 1),
U8(
0,
),
),
],
),
"tls": Empty(
Tag(Default, 1),
None,
),
"workers": Num(
Tag(Default, 1),
U16(
16,
),
),
},
Profile(
Uncased {
string: "global",
},
): {
"address": String(
Tag(Global, 2),
"0.0.0.0",
),
"databases": Dict(
Tag(Global, 2),
{
"kittybox": Dict(
Tag(Global, 2),
{
"url": String(
Tag(Global, 2),
"postgres://kitty:hackme@localhost:5432/kittybox",
),
},
),
},
),
"template_dir": String(
Tag(Global, 2),
"templates/",
),
},
Profile(
Uncased {
string: "release",
},
): {
"databases": Dict(
Tag(Custom, 2),
{
"kittybox": Dict(
Tag(Custom, 2),
{
"url": String(
Tag(Custom, 2),
"postgres://kitty:hackme@kitty-api-db:5432/kittybox",
),
},
),
},
),
"port": Num(
Tag(Custom, 2),
I64(
8080,
),
),
},
},
),
}