runique 3.0.2

A Django-inspired web framework for Rust with ORM, templates, and comprehensive security middleware
Documentation
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
{
  "forms": {
    "upload_dir_error": "Error creating upload directory",
    "file_create_error": "Error creating file",
    "multipart_stream_error": "Multipart stream error",
    "file_write_error": "Error writing file",
    "required": "This field is required",
    "too_short": "Too short (min {})",
    "too_long": "Too long (max {})",
    "email_invalid": "Invalid email address format",
    "url_invalid": "Please enter a valid URL",
    "phone_invalid": "Invalid phone number (digits, +, spaces, dashes allowed, 7-15 digits)",
    "hash_error": "Hashing error: {}",
    "password_empty": "Password cannot be empty",
    "filter_invalid_value": "The static/media filter received an invalid value ({}) instead of a file path.",
    "number_invalid": "Invalid number",
    "number_required": "Required",
    "integer_required": "Must be an integer",
    "decimal_required": "Must be decimal format",
    "min_value": "Min {} required",
    "max_value": "Max {} exceeded",
    "precision_max": "Max {} decimal places",
    "precision_min": "Min {} decimal places",
    "color_invalid": "Invalid color (format: #RRGGBB or #RGB)",
    "color_no_hash": "Color must start with #",
    "color_bad_hex": "Contains non-hexadecimal characters",
    "slug_invalid": "Invalid slug",
    "slug_no_dash": "Slug must not start or end with dash",
    "uuid_invalid": "Invalid UUID format (expected: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
    "json_invalid": "Invalid JSON: {}",
    "ipv4_only": "Only IPv4 addresses accepted",
    "ipv6_only": "Only IPv6 addresses accepted",
    "ip_invalid": "Invalid IP address",
    "date_invalid": "Invalid date format",
    "date_too_old": "Too old (min: {})",
    "date_too_far": "Too far (max: {})",
    "time_invalid": "Invalid time format",
    "file_required": "Please select at least one file",
    "data_invalid": "Invalid value for '{}'",
    "data_required": "'{}' is required",
    "data_password": "The password for '{}' could not be hashed; nothing was saved",
    "file_extension_blocked": "File '{}' not allowed. Extensions: {}",
    "finalize_error": "Error finalizing field '{}': {}",
    "template_missing": "Missing template: {}",
    "render_js_error": "JS render error: {}",
    "tera_not_configured": "Tera not configured",
    "config_not_found": "Config not found in extensions",
    "hint_slug": "Format: letters-digits-hyphens",
    "hint_uuid": "Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "hint_json": "Valid JSON format required",
    "hint_ip_v4": "Format IPv4: 192.168.1.1",
    "hint_ip_v6": "Format IPv6: 2001:0db8:85a3::8a2e:0370:7334",
    "hint_ip": "Format IPv4 or IPv6",
    "validation_overflow": "Stack overflow detected: infinite recursion in validation",
    "choice_invalid": "Invalid choice",
    "choice_invalid_value": "Invalid choice: {}",
    "select_required": "Please select an option",
    "checkbox_required": "Please select at least one option",
    "multipart_error": "Multipart error",
    "body_error": "Body read error",
    "aegis_query_error": "Failed to parse query string: {}",
    "aegis_urlencoded_error": "Failed to parse urlencoded body: {}",
    "aegis_json_error": "Failed to parse JSON body: {}",
    "auth_required": "Authentication required",
    "role_insufficient": "Insufficient role",
    "unknown_group": "GuardRules: group(s) that do not exist in roles([...]): {}",
    "time_too_old": "Too early (min: {})",
    "time_too_far": "Too late (max: {})",
    "datetime_too_old": "Too early (min: {})",
    "datetime_too_far": "Too late (max: {})",
    "duration_invalid": "Invalid duration (expected: number of seconds)",
    "duration_too_short": "Min {} seconds required",
    "duration_too_long": "Max {} seconds exceeded",
    "file_max_count": "Max {} files allowed",
    "file_too_large": "File '{}' too large ({}MB > {}MB max)",
    "file_invalid_image": "File '{}' is not a valid image",
    "image_too_wide": "Image '{}' too wide ({}px > {}px)",
    "image_too_tall": "Image '{}' too tall ({}px > {}px)",
    "boolean_required": "You must accept this field",
    "slug_unicode_invalid": "Only letters, digits, hyphens and underscores allowed",
    "unique_field_taken": "This {} is already taken.",
    "unique_value_taken": "Field '{}' value is already taken.",
    "unique_constraint_violated": "A uniqueness constraint was violated.",
    "db_error": "DB error: {}",
    "text_field_too_large": "Text field too large (max 1 MB)",
    "upload_too_large": "File upload too large (max {}MB)"
  },
  "csrf": {
    "missing": "CSRF token missing",
    "invalid": "Invalid CSRF token",
    "invalid_or_missing": "Invalid or missing CSRF token",
    "forbidden": "Invalid CSRF token",
    "session_write_error": "Session write error"
  },
  "error": {
    "source": "Source: {}",
    "AppError": "Application error",
    "build": "Build error: {}",
    "internal": "Internal error",
    "forbidden": "Access forbidden",
    "not_found": "Resource not found",
    "validation": "Validation error: {}",
    "database": "Database error: {}",
    "io": "IO error: {}",
    "template": "Template error: {}",
    "custom": "Custom error: {}",
    "title": {
      "bad_request": "Bad Request",
      "not_found": "Page Not Found",
      "forbidden": "Access Forbidden",
      "validation": "Validation Error",
      "database": "Database Error",
      "template": "Template Rendering Error",
      "internal": "Internal Server Error"
    },
    "invalid_query": "Invalid query parameters: {}",
    "path_not_found": "The requested path '{}' was not found",
    "internal_occurred": "An internal error occurred",
    "context_occurred": "AppError occurred"
  },
  "title": {
    "template": "Template error in '{}'"
  },
  "build": {
    "subscriber_already_installed": "A tracing subscriber is already installed; Runique log configuration is inactive (RUST_LOG / with_log have no effect)",
    "external_outputs_ignored": "`with_log(|l| l.external())` is set; configured log outputs are ignored (the application owns the subscriber)",
    "validation_failed": "Build validation failed: {}",
    "check_failed": "Build failed with {} check error(s)",
    "template_failed": "Template loading failed: {}",
    "driver_not_enabled": "{} driver not enabled: Runique was compiled without the '{}' feature.\n\nIn your project's Cargo.toml:\nrunique = { version = \"{}\", features = [\"{}\"] }\n\nFor the runique CLI:\ncargo install runique --features {} --locked --force\n\nTo support every engine, use the 'all-databases' feature.",
    "db_missing": "Database connection required when 'orm' feature is enabled",
    "component_not_ready": "Component '{}' is not ready",
    "check": {
      "db_required": "Database connection or configuration required (`orm` feature enabled)",
      "db_required_hint": "Add .with_database(db) or .with_database_config(config) to your construction chain",
      "admin_prefix_empty": "The admin route prefix cannot be empty",
      "admin_prefix_empty_hint": "Use .prefix(\"/admin\") or leave the default value",
      "extra_route_unknown": "Extra route `{}` names resource `{}`, which isn't registered",
      "extra_route_unknown_hint": "Use the key of a resource declared in admin!{}",
      "cache_control_invalid": "Invalid Cache-Control header value: '{}'",
      "cache_control_invalid_hint": "Use only visible ASCII characters (no control characters, no newlines).",
      "media_root_unusable": "Cannot create or access MEDIA_ROOT directory '{}': {}",
      "media_root_unusable_hint": "Set MEDIA_ROOT to an absolute writable path in your .env (e.g. MEDIA_ROOT=/var/www/myapp/media) and ensure the process has write permission.",
      "secret_key_weak": "SECRET_KEY is missing, empty, the default value, or shorter than 32 characters",
      "secret_key_weak_hint": "Set SECRET_KEY to a random 32+ character string in your .env file (the `runique` CLI can generate one)",
      "public_url_missing": "No public URL: password reset links would be built from the request's Host header",
      "public_url_missing_hint": "Set it in the builder: .with_public_url(\"https://mysite.com\")",
      "acme_domain_missing": "ACME_ENABLED=true but ACME_DOMAIN is not set",
      "acme_domain_missing_hint": "Set ACME_DOMAIN to your production domain in your .env file",
      "acme_email_missing": "ACME_ENABLED=true but ACME_EMAIL is not set",
      "acme_email_missing_hint": "Set ACME_EMAIL to your Let's Encrypt contact email in your .env file",
      "suggestion": "Suggestion",
      "context": "Context"
    }
  },
  "server": {
    "operational": "Runique is operational",
    "launched": "Server launched on {}",
    "connected_db": "Connected to database {} -> {}",
    "stop_hint": "ctrl + c to stop",
    "shutting_down": "Shutting down Runique server...",
    "acme_not_compiled": "ACME_ENABLED=true but the `acme` feature is not compiled in.",
    "acme_add_feature": "Add the `acme` feature to your Cargo.toml.",
    "test_utils_feature_enabled": "`test-utils` feature compiled into this build — make sure it's under [dev-dependencies], never [dependencies], before deploying to production."
  },
  "middleware": {
    "bad_request": "Bad Request",
    "slot_collision": "Runique middleware slot collision: '{}' and '{}' both claim slot {}. Register fewer custom middlewares or give this one an explicit slot."
  },
  "html": {
    "400_title": "400",
    "400_text": "Bad request: the address parameters are not valid.",
    "404_title": "404",
    "404_text": "Page not found",
    "500_title": "500",
    "500_text": "Internal server error",
    "500_notice": "Our teams have been notified and are working on it.",
    "429_title": "429",
    "429_text": "Too many requests. Please wait a moment before trying again.",
    "503_title": "503",
    "503_text": "Service temporarily unavailable due to high load. Please try again shortly.",
    "back_home": "Back to home",
    "critical_error_title": "Critical Error",
    "critical_error_text": "The error handling system itself encountered an error.",
    "critical_error_contact": "This should never happen. Please contact the system administrator."
  },
  "debug": {
    "stack_trace_title": "Detailed error trace",
    "stack_trace_tip": "The highest error (level 0) is usually the root cause. Following errors show how the error propagated through the code."
  },
  "flash": {
    "welcome": "Welcome {}, your account has been created!",
    "fix_errors": "Please correct the errors",
    "success_demo": "This is a success message.",
    "info_demo": "This is an info message.",
    "warning_demo": "This is a warning message.",
    "error_demo": "This is an error message."
  },
  "cli": {
    "creating_project": "Creating project '{}'...",
    "admin_detected": "Admin detected → generating admin code",
    "add_admin_hint": "Add .with_admin(...) in your builder to enable the AdminPanel.",
    "daemon_error": "[Daemon] Error: {}",
    "cargo_run_failed": "Application server failed to start correctly (cargo run)",
    "file_not_found": "File not found: {}\nMake sure you're at the root of your Runique project.",
    "admin_not_found": "Admin file not found: {}\nCreate src/admin.rs with admin!{} macro.",
    "name_empty": "The project name cannot be empty",
    "name_invalid": "The project name must contain only letters, numbers, _ or -",
    "name_dash": "The project name cannot start with -",
    "folder_exists": "The folder '{}' already exists",
    "cargo_run_expect": "Failed to launch cargo run",
    "project_created": "Project '{}' created successfully!",
    "getting_started": "To get started:",
    "cd_hint": "cd {}",
    "cargo_run_hint": "cargo run",
    "fmt_failed": "cargo fmt failed — formatting skipped: {}"
  },
  "daemon": {
    "unable_read": "Unable to read: {}",
    "parse_error": "Parsing error: {}",
    "no_resource": "No resource in admin!{} — nothing to generate",
    "operational": "Daemon operational → src/admins/admin.rs",
    "generation_error": "Generation error: {}",
    "generated_header": "AUTO-GENERATED — DO NOT EDIT MANUALLY",
    "generated_notice": "Produced by `runique start` from src/admin.rs. Any change will be overwritten."
  },
  "macro": {
    "named_fields_only": "Named fields structs only",
    "structs_only": "Works only on structs",
    "forms_field_required": "Struct '{}' must have a 'Forms' field",
    "field_no_name": "Field without name",
    "model_form_named_only": "DeriveModelForm: structs with named fields only",
    "model_form_structs_only": "DeriveModelForm: structs only"
  },
  "parser": {
    "multiple_admin_blocks": "admin!: only one admin! block is allowed per file (first block at line {}, second at line {}) — merge them",
    "title_required": "admin!: 'title' is required",
    "list_display_exclude_exclusive": "admin!: 'list_display' and 'list_exclude' are mutually exclusive"
  },
  "TemplateMessage": {
    "debug_info_title": "Debug Information",
    "debug_field_title": "Title",
    "debug_field_count": "Field Count",
    "debug_error_count": "Errors",
    "debug_main_message": "Main Message",
    "debug_root_cause": "Root Cause",
    "debug_details": "Additional Details",
    "debug_request_info": "Request Information",
    "debug_http_method": "HTTP Method",
    "debug_path": "Path",
    "debug_query_params": "Query Parameters",
    "debug_http_headers": "HTTP Headers",
    "debug_template_info": "Template Information",
    "debug_template_name": "Template Name",
    "debug_error_line": "Error Line",
    "debug_template_source": "Template Source Code",
    "debug_available_templates": "Available Templates",
    "debug_stack_trace_title": "Detailed Error Trace",
    "debug_stack_trace_tip": "The topmost error (level 0) is usually the root cause. Subsequent errors show how the error propagated through the code.",
    "debug_environment": "Environment",
    "debug_debug_mode": "Debug Mode",
    "debug_enabled": "Enabled",
    "debug_disabled": "Disabled",
    "debug_rust_version": "Rust Version",
    "debug_app_version": "App Version",
    "debug_status_code": "Status Code",
    "debug_header_name": "Name",
    "debug_header_value": "Value"
  },
  "admin": {
    "group": "Group",
    "groups": "Groups",
    "resource": "Resource",
    "resources": "Resources",
    "can_create": "Create",
    "can_read": "Read",
    "can_update": "Update",
    "can_delete": "Delete",
    "can_update_own": "Update",
    "can_delete_own": "Delete",
    "name": "Name",
    "username": "Username",
    "email": "Email",
    "staff": "Staff",
    "superuser": "Superuser",
    "active": "Active",
    "user": {
      "username_too_short": "Username is too short (min 3 chars)",
      "invalid_email": "Invalid email address format",
      "not_activated": "This account has not been activated by its user yet: it will be once they have chosen their password through the email they received."
    },
    "login": {
      "title": "Login",
      "subtitle": "Sign in to access the admin panel",
      "label_username": "Username",
      "label_password": "Password",
      "btn_submit": "Sign in",
      "error_session": "Error while opening session.",
      "error_credentials": "Incorrect credentials or insufficient rights.",
      "error_locked": "Too many attempts. Account temporarily locked. Try again in {} seconds."
    },
    "logout": {
      "success": "Successfully logged out."
    },
    "access": {
      "insufficient_rights": "Insufficient rights to access administration"
    },
    "dashboard": {
      "title": "Dashboard",
      "subtitle": "Application overview",
      "card_resources": "Resources",
      "th_resource": "Resource",
      "th_key": "Key",
      "th_permissions": "Permissions",
      "th_actions": "Actions",
      "btn_list": "List",
      "btn_create": "Create",
      "see_list": "View list →",
      "empty_title": "No resources registered",
      "empty_desc": "Declare your resources in src/admin.rs with the admin!{{}} macro then run runique start",
      "kpi_resources": "Resources",
      "kpi_entries": "Total entries",
      "kpi_largest": "Largest",
      "th_count": "Entries"
    },
    "list": {
      "breadcrumb_admin": "Administration",
      "entries_count_one": "entry",
      "entries_count_many": "entries",
      "btn_create": "Create",
      "th_id": "id",
      "th_actions": "Actions",
      "bool_true": "Yes",
      "bool_false": "No",
      "btn_detail": "Detail",
      "btn_edit": "Edit",
      "btn_delete": "Delete",
      "confirm_delete": "Really delete?",
      "empty_title": "No entries",
      "empty_desc": "Start by creating an item.",
      "btn_create_first": "Create the first",
      "search_placeholder": "Search..."
    },
    "create": {
      "title": "Create",
      "breadcrumb": "Create",
      "card_info": "Information",
      "no_fields": "No fields available at the moment.",
      "btn_cancel": "Cancel",
      "btn_submit": "Create",
      "success": "Entry created successfully!"
    },
    "edit": {
      "title": "Edit",
      "breadcrumb": "Edit",
      "card_info": "Information",
      "no_fields": "No fields available at the moment.",
      "btn_cancel": "Cancel",
      "btn_submit": "Save",
      "success": "Entry updated successfully!"
    },
    "detail": {
      "title": "Detail",
      "breadcrumb": "Detail",
      "entry_label": "Entry",
      "btn_list": "← List",
      "btn_edit": "Edit",
      "btn_delete": "Delete",
      "confirm_delete": "Delete this entry?",
      "btn_reset_password": "Reset password",
      "btn_reset_password_short": "Reset"
    },
    "reset_password": {
      "btn": "Reset password",
      "success_email": "Reset link sent to {}.",
      "success_link": "Reset link (mailer not configured): {}",
      "error_no_email": "No email field found for this user.",
      "error_unavailable": "A password reset isn't available for this item.",
      "error_send": "Error sending email: {}",
      "email_subject": "Reset your password",
      "email_title": "Password reset",
      "email_greeting": "Hello,",
      "email_body": "Click the link below to reset your password (valid for 1 hour):",
      "email_btn": "Reset my password",
      "email_ignore": "If you did not request this reset, ignore this message."
    },
    "user_created": {
      "email_subject": "Welcome — set your password",
      "email_sent": "Welcome email sent to {}.",
      "email_greeting": "Welcome,",
      "email_body": "An account has been created for you. Click the link below to set your password:",
      "email_btn": "Set my password",
      "email_validity": "This link is valid for 1 hour. If you were not expecting this message, ignore it."
    },
    "delete": {
      "title": "Delete",
      "breadcrumb": "Delete",
      "heading": "Confirm deletion",
      "btn_cancel": "← Cancel",
      "success": "Entry deleted successfully!",
      "btn_confirm": "Yes, delete permanently",
      "warning": {
        "title": "Warning!",
        "desc": "You are about to delete the entry",
        "of": "from resource",
        "irreversible": "This action is irreversible."
      },
      "not_found": "Resource not found."
    },
    "bulk": {
      "no_selection": "No items selected.",
      "no_field_selected": "No field changed.",
      "delete_success": "item(s) deleted.",
      "update_success": "item(s) updated."
    },
    "base": {
      "title": "Administration",
      "breadcrumb": "Admin",
      "toggle": "Collapse menu",
      "logout_title": "Logout",
      "theme_toggle": "Toggle theme",
      "back_to_site": "← Site"
    },
    "superuser_wizard": {
      "title": "=== Create Superuser ===",
      "algo_prompt": "[1/5] Hashing algorithm",
      "algo_argon2": "Argon2 (recommended)",
      "algo_bcrypt": "Bcrypt",
      "algo_scrypt": "Scrypt",
      "algo_custom": "Custom provider",
      "provider_path": "Provider path",
      "invalid_path": "Invalid path.",
      "username_prompt": "[2/5] Username",
      "username_empty": "Username cannot be empty.",
      "username_taken": "A user with this name already exists.",
      "email_prompt": "[3/5] Email",
      "email_invalid": "Invalid email.",
      "email_taken": "A user with this email already exists.",
      "password_prompt": "[4/5] Password",
      "password_too_short": "Password must be at least 12 characters.",
      "password_weak": "Password must contain at least one lowercase letter, one uppercase letter, one digit and one special character.",
      "confirm_prompt": "[5/5] Confirm password",
      "password_mismatch": "Passwords do not match. Please try again.",
      "review_algo": "  Algorithm   : {}",
      "review_username": "  Username    : {}",
      "review_email": "  Email       : {}",
      "review_password": "  Password    : ••••••••",
      "review_action": "Action",
      "confirm_create": "Confirm and create",
      "change_algo": "Change algorithm",
      "modify_password": "Modify password",
      "success": "✓ Superuser created successfully!",
      "id_line": "  ID       : {}",
      "username_line": "  Username : {}",
      "email_line": "  Email    : {}"
    },
    "builtin": {
      "invalid_id": "Invalid identifier.",
      "droit_resource_required": "Please select at least one resource.",
      "droit_exists": "The right \"{}\" already exists for this group.",
      "groupe_exists": "A group named \"{}\" already exists.",
      "user_username_exists": "The username \"{}\" is already taken.",
      "user_email_exists": "The email address \"{}\" is already registered."
    }
  },
  "reset": {
    "forgot_title": "Forgot password",
    "reset_title": "New password",
    "success_title": "Password reset",
    "email_label": "Email address",
    "new_password_label": "New password",
    "confirm_label": "Confirm password",
    "email_mismatch": "The email address does not match the link.",
    "invalid_link": "Invalid link.",
    "invalid_or_expired": "Reset link is invalid or expired.",
    "password_min_length": "Password must be at least {} characters.",
    "password_weak": "Password must contain at least one uppercase letter, one lowercase letter, one digit, and one special character (!@#$%...).",
    "password_mismatch": "Passwords do not match.",
    "check_inbox": "If this address is linked to an account, you will receive an email with instructions.",
    "blocked_subject": "Your account is blocked",
    "blocked_body": "<p>Hello {},</p><p>A password reset was requested for your account, but this account is blocked. Contact the site administrator to unblock it.</p><p>If you did not make this request, ignore this email.</p>",
    "email_subject": "Password reset request",
    "email_body": "<p>Hello {},</p><p>Click the link below to reset your password (valid for 1 hour):</p><p><a href=\"{}\">{}</a></p>"
  },
  "makemigrations": {
    "destructive_detected": "Destructive changes detected:",
    "destructive_require_force": "Use --force to apply these destructive changes.",
    "long_identifier_detected": "Generated SQL identifiers are too long (MariaDB/MySQL limit: 64 characters):",
    "long_identifier_rename_required": "Shorten the table/column names involved — Runique doesn't auto-truncate identifiers.",
    "files_ready": "{} file(s) ready to migrate.",
    "snapshots_upgraded": "{} snapshot(s) updated to record column lengths (no migration)."
  },
  "migrate": {
    "applying": "Applying migrations from '{}'...",
    "complete_up": "Migration complete.",
    "crate_missing": "Migration crate not found: '{}' has no Cargo.toml."
  },
  "permission": {
    "col": {
      "id": "ID",
      "can_create": "Create",
      "can_delete": "Delete",
      "can_delete_own": "Delete (own)",
      "can_read": "Read",
      "can_update": "Update",
      "can_update_own": "Update (own)",
      "groupes": "Groups",
      "resource_key": "Resource",
      "actions": "Actions"
    }
  },
  "runique_test": {
    "connect_failed": "can't connect: {}",
    "begin_failed": "can't open the test transaction: {}",
    "env_read_failed": "can't read {}: {}",
    "env_parse_failed": "can't parse {}: {}",
    "env_line_malformed": "can't parse {}: a line is malformed at character {} (the line isn't shown, it may hold a password)",
    "no_panic_message": "no message",
    "query_failed": "failed",
    "panicked": "panicked: {}",
    "rollback_failed": "rollback: {}",
    "test_failed": "{} failed, see the output above",
    "clone_outlived": "a clone of the test connection outlived the handler; the transaction rolls back when that clone is dropped",
    "not_a_transaction": "the test didn't run inside a transaction, so nothing could be rolled back",
    "nested": "runique_test can't run inside another runique_test: it would wait for its own caller forever",
    "timed_out": "the handler didn't finish within {} s: a deadlock, or a row another connection keeps locked? RUNIQUE_TEST_TIMEOUT in the env file changes the limit",
    "bad_timeout": "{} must be a whole number of seconds above 0, got \"{}\"",
    "transaction_ended": "the test's transaction was ended from inside the test (a COMMIT, or DDL on MariaDB/MySQL): everything written before that is now in the database",
    "swallowed_failures": "failed queries: {}, yet the handler returned Ok: an error got swallowed somewhere (wrap the failures you expect in expect_db_error)",
    "rollback_timed_out": "the rollback didn't finish within {} s",
    "expected": "expected",
    "not_refused": "the database accepted what the test expected it to refuse",
    "no_db_config": "the env file sets neither DATABASE_URL nor DB_ENGINE: the test database has to be named in it, nothing is taken from the shell",
    "in_memory": "in-memory: every test starts from an empty database"
  },
  "test_runner": {
    "no_cargo_toml": "No Cargo.toml here: run `runique test` from your project's root.",
    "test_utils_missing": "The `test-utils` feature isn't enabled for runique in Cargo.toml.\nAdd it as a dev-dependency so it never ends up in a release build:\n    cargo add --dev runique --features test-utils",
    "test_utils_shipped": "Cargo.toml enables `test-utils` outside of [dev-dependencies], so the test builder would end up in your release build.\nRemove it from [dependencies] (and from any [features] entry), then add it as a dev-dependency only:\n    cargo add --dev runique --features test-utils",
    "no_mod_file": "No src/runique_test/mod.rs: create it, then declare each test file in it (`mod user;`).",
    "module_not_declared": "src/main.rs doesn't declare the test module. Add:\n    #[cfg(test)]\n    mod runique_test;",
    "module_not_gated": "The runique_test module isn't behind `cfg(test)`, so it would end up in every build.\nPut `#[cfg(test)]` right above `mod runique_test;` in src/main.rs.",
    "file_not_declared_warning": "warning: src/runique_test/{}.rs isn't declared in mod.rs, so its tests won't run. Add `mod {};` to mod.rs.",
    "no_test_file": "No src/runique_test/{}.rs. Test files: {}",
    "file_not_declared": "src/runique_test/{}.rs isn't declared in mod.rs: add `mod {};` to it.",
    "cargo_spawn_failed": "Couldn't run cargo.",
    "output_failed": "Couldn't show cargo's output.",
    "cargo_wait_failed": "cargo test didn't finish properly.",
    "tests_failed": "cargo test failed, see the output above.",
    "build_failed": "cargo couldn't build the tests, see the errors above.",
    "no_such_test": "No test \"{}\" in {}.rs. Tests available: {}",
    "dir_read_failed": "Can't read {}"
  },
  "auth": {
    "login_cannot_sign_in": "This account cannot sign in: it is inactive or has never been activated.",
    "login_session_failed": "The session could not be saved: {}"
  }
}