forked from ZmoleCristian/catalyst
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCatalyst.toml
More file actions
123 lines (108 loc) · 2.67 KB
/
Catalyst.toml
File metadata and controls
123 lines (108 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[settings]
environment = "dev"
show_compiler_warnings = true
[sparks]
plznohac = "https://github.com/Arete-Innovations/plznohac"
vigil = "https://github.com/Arete-Innovations/vigil"
[codegen]
structs_dir = "src/structs/generated"
models_dir = "src/models/generated"
schema_file = "src/database/schema.rs"
# Post-generation hooks section - scripts to run after code generation
[codegen.hooks]
# Set to true to enable running post-generation hooks
enabled = true
# Scripts to run after specific generation tasks
# The paths should be relative to the project root
post_structs = [
# "scripts/post_structs_generation.sh arg1 arg2",
# "cargo fmt",
]
post_models = [
# "scripts/post_models_generation.sh",
# "cargo clippy",
]
# Script to run after any generation task
post_any = [
# "scripts/notify_generation_complete.sh",
]
[codegen.models]
ignore= [
"users",
"spatial_ref_sys"
]
[codegen.structs]
ignore = [
"users",
"spatial_ref_sys"
]
derives = [
"Debug",
"Queryable",
"Clone",
"Serialize",
"Deserialize"
]
imports = [
"serde::Serialize",
"serde::Deserialize",
"diesel::Identifiable",
"diesel::Queryable"
]
[codegen.structs.insertable]
# Tables to skip insertable struct generation
ignore = [
"spatial_ref_sys"
]
derives = [
"Debug",
"Queryable",
"Clone",
"Serialize",
"Deserialize"
]
imports = [
"serde::Serialize",
"serde::Deserialize",
"diesel::Identifiable",
"diesel::Queryable"
]
# Example of struct-specific imports (replace ExampleStruct with your struct name)
# [codegen.structs.ExampleStruct]
# imports = [
# "chrono::NaiveDateTime",
# "uuid::Uuid"
# ]
[assets]
public_dir = "public"
[assets.locale]
dir = "src/assets/locale"
default_language = "en"
[assets.materialize]
repo_url = "https://github.com/Dogfalo/materialize.git"
version = "1.0.0"
public_dir = "js/materialize"
[assets.htmx]
js_url = "https://cdnjs.cloudflare.com/ajax/libs/htmx/2.0.4/htmx.min.js"
public_dir = "js/htmx"
[assets.materialicons]
base_url = "https://raw.githubusercontent.com/google/material-design-icons/master/font"
public_dir = "fonts/material-icons"
woff2 = "MaterialIcons-Regular.woff2"
ttf = "MaterialIcons-Regular.ttf"
[assets.fontawesome]
base_url = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1"
public_dir = "fonts/fontawesome"
css = ["css/all.min.css"]
js = ["js/all.min.js"]
sprites = ["sprites/brands.svg", "sprites/regular.svg", "sprites/solid.svg"]
webfonts = [
"webfonts/fa-brands-400.ttf",
"webfonts/fa-brands-400.woff2",
"webfonts/fa-regular-400.ttf",
"webfonts/fa-regular-400.woff2",
"webfonts/fa-solid-900.ttf",
"webfonts/fa-solid-900.woff2",
"webfonts/fa-v4compatibility.ttf",
"webfonts/fa-v4compatibility.woff2"
]