cruct 1.0.0

A procedural macro for loading configuration files into Rust structs with compile‑time validation and type safety.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
name = "file_name"
count = 123

database_url = "postgres://user:password@localhost/dbname"

else = "toml value"
http_port = 8080

items = ["a", "b", "c"]
numbers = [1, 2, 3]

matrix = [[1, 2], [3, 4]]

[nested]
items = ["foo", "bar"]
numbers = [42, 99]