Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
373 lines (342 loc) · 16.3 KB
/
Copy pathCargo.toml
File metadata and controls
373 lines (342 loc) · 16.3 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
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
[package]
name = "laravel-rust"
description = "Laravel for Rust: a full-stack Rust web framework."
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
readme.workspace = true
keywords = ["laravel", "web", "framework", "http", "axum"]
categories = ["web-programming", "web-programming::http-server", "database"]
# Keep `docs/` so applications can read the guides for their installed version offline...
# Exclude `.cargo` so docs.rs uses its own rustdoc instead of `scripts/rustdoc`...
exclude = ["/macros", "/crates", "/scripts", "/.cargo", "/.github"]
autotests = false
[lib]
name = "laravel"
[[test]]
name = "core"
path = "tests/suite_core.rs"
[[test]]
name = "database"
path = "tests/suite_database.rs"
[[test]]
name = "http"
path = "tests/suite_http.rs"
[[test]]
name = "queue"
path = "tests/suite_queue.rs"
[[test]]
name = "validation"
path = "tests/suite_validation.rs"
[[test]]
name = "panic_locations"
path = "tests/panic_locations.rs"
[[test]]
name = "opentelemetry"
path = "tests/opentelemetry.rs"
required-features = ["opentelemetry"]
[[test]]
name = "opentelemetry_exporter"
path = "tests/opentelemetry_exporter.rs"
required-features = ["opentelemetry"]
[[test]]
name = "tracing_policy"
path = "tests/tracing_policy.rs"
required-features = ["opentelemetry", "database-sqlite"]
[[test]]
name = "future_depth"
path = "tests/future_depth.rs"
required-features = ["database-sqlite"]
[[test]]
name = "relation_cycles"
path = "tests/relation_cycles.rs"
required-features = ["database-sqlite"]
[[test]]
name = "model_users"
path = "tests/model_users.rs"
required-features = ["database-sqlite"]
[[test]]
name = "testing_attribute"
path = "tests/testing_attribute.rs"
[[test]]
name = "feature_names"
path = "tests/feature_names.rs"
[features]
default = ["inertia", "minijinja"]
## S3-compatible object storage, with the AWS default credential chain.
s3 = ["dep:aws-sdk-s3", "dep:aws-smithy-http-client", "laravel_http/s3", "laravel_queue/s3", "laravel_notifications/s3"]
## First-party Inertia support: `laravel::inertia`.
inertia = ["dep:inertia-laravel-rust", "laravel_core/inertia", "laravel_database/inertia", "laravel_http/inertia", "laravel_queue/inertia", "laravel_events/inertia", "laravel_notifications/inertia", "laravel_workflow/inertia", "laravel_schedule/inertia", "laravel_feature/inertia"]
## The built-in view engine: MiniJinja, for `.html` views in Jinja's syntax.
minijinja = ["dep:minijinja", "laravel_http/minijinja", "laravel_feature/minijinja"]
## Named, lazy database connections: `laravel::db`. Enable it through a driver feature below.
database = ["dep:sqlx", "dep:fake", "dep:laravel-rust-model-macros", "laravel_core/database", "laravel_database/database", "laravel_cache/database", "laravel_http/database", "laravel_queue/database", "laravel_events/database", "laravel_notifications/database", "laravel_workflow/database", "laravel_schedule/database", "laravel_feature/database"]
## SQLite database connections.
database-sqlite = ["database", "sqlx/sqlite", "laravel_core/database-sqlite", "laravel_database/database-sqlite", "laravel_cache/database-sqlite", "laravel_http/database-sqlite", "laravel_queue/database-sqlite", "laravel_events/database-sqlite", "laravel_notifications/database-sqlite", "laravel_workflow/database-sqlite", "laravel_schedule/database-sqlite", "laravel_feature/database-sqlite", "laravel_search?/database-sqlite"]
## PostgreSQL database connections.
database-postgres = ["database", "sqlx/postgres", "laravel_core/database-postgres", "laravel_database/database-postgres", "laravel_cache/database-postgres", "laravel_http/database-postgres", "laravel_queue/database-postgres", "laravel_events/database-postgres", "laravel_notifications/database-postgres", "laravel_workflow/database-postgres", "laravel_schedule/database-postgres", "laravel_feature/database-postgres", "laravel_search?/database-postgres"]
## MySQL and MariaDB database connections.
database-mysql = ["database", "sqlx/mysql", "laravel_core/database-mysql", "laravel_database/database-mysql", "laravel_cache/database-mysql", "laravel_http/database-mysql", "laravel_queue/database-mysql", "laravel_events/database-mysql", "laravel_notifications/database-mysql", "laravel_workflow/database-mysql", "laravel_schedule/database-mysql", "laravel_feature/database-mysql", "laravel_search?/database-mysql"]
## Named, lazy Redis connections: `laravel::redis`, and the `redis` cache store, session driver and queue driver.
redis = ["laravel_redis/redis", "laravel_cache/redis", "laravel_http/redis", "laravel_queue/redis"]
## A local Reverb WebSocket server, which the `reverb:start` command runs.
reverb = ["dep:laravel_reverb"]
## Queue connections on Amazon SQS and Laravel Cloud's managed queues: the `sqs` and `cloud` queue drivers.
sqs = ["dep:aws-sdk-sqs", "dep:aws-smithy-http-client", "laravel_queue/sqs", "laravel_notifications/sqs"]
## Sending email through Amazon SES: the `ses` mail transport.
ses = ["laravel_queue/ses", "laravel_notifications/ses"]
## Full-text search over models: `laravel::search`, with the `database` engine. Enable a database driver feature too.
search = ["dep:laravel_search", "database", "laravel-rust-model-macros/search"]
## Export traces to OpenTelemetry over OTLP, configured by the standard `OTEL_*` variables.
opentelemetry = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp", "dep:tracing-opentelemetry", "laravel_core/opentelemetry", "laravel_client/opentelemetry", "laravel_http/opentelemetry", "laravel_queue/opentelemetry"]
[dependencies]
laravel_feature.workspace = true
laravel_schedule.workspace = true
laravel_workflow.workspace = true
laravel_notifications.workspace = true
laravel_events.workspace = true
laravel_queue.workspace = true
laravel_http.workspace = true
laravel_client.workspace = true
laravel_cache.workspace = true
laravel_redis.workspace = true
laravel_reverb = { workspace = true, optional = true }
laravel_search = { workspace = true, optional = true }
laravel_database.workspace = true
laravel_console.workspace = true
laravel_core.workspace = true
laravel-rust-macros.workspace = true
laravel-rust-database-macros.workspace = true
laravel-rust-model-macros = { workspace = true, optional = true }
laravel-rust-http-macros.workspace = true
laravel-rust-validation-macros.workspace = true
laravel-rust-queue-macros.workspace = true
anyhow.workspace = true
aws-sdk-s3 = { workspace = true, optional = true }
aws-sdk-sqs = { workspace = true, optional = true }
aws-smithy-http-client = { workspace = true, optional = true }
axum.workspace = true
base64.workspace = true
bcrypt.workspace = true
bytes.workspace = true
clap.workspace = true
comfy-table.workspace = true
console.workspace = true
cookie.workspace = true
fake = { workspace = true, optional = true }
futures-util.workspace = true
getrandom.workspace = true
hex.workspace = true
hmac.workspace = true
http.workspace = true
http-body.workspace = true
http-body-util.workspace = true
inertia-laravel-rust = { workspace = true, features = ["axum", "ssr"], optional = true }
inventory.workspace = true
jiff.workspace = true
laravel-vite-rust.workspace = true
log.workspace = true
minijinja = { workspace = true, optional = true }
opentelemetry = { workspace = true, optional = true }
opentelemetry-otlp = { workspace = true, optional = true }
opentelemetry_sdk = { workspace = true, optional = true }
percent-encoding.workspace = true
regex.workspace = true
rustls.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_urlencoded.workspace = true
sha1.workspace = true
sha2.workspace = true
shlex.workspace = true
sqlx = { workspace = true, optional = true }
subtle.workspace = true
thiserror.workspace = true
tokio.workspace = true
tower.workspace = true
tracing.workspace = true
tracing-appender.workspace = true
tracing-log.workspace = true
tracing-opentelemetry = { workspace = true, optional = true }
tracing-subscriber.workspace = true
ulid.workspace = true
url.workspace = true
uuid.workspace = true
[target.'cfg(unix)'.dependencies]
signal-hook.workspace = true
[package.metadata.docs.rs]
all-features = true
[dev-dependencies]
laravel_workflow = { workspace = true, features = ["testing"] }
async-stream.workspace = true
async-trait.workspace = true
axum = { workspace = true, features = ["multipart"] }
hex.workspace = true
hmac.workspace = true
md-5.workspace = true
opentelemetry_sdk = { workspace = true, features = ["testing"] }
reqwest.workspace = true
rstest.workspace = true
serde_urlencoded.workspace = true
sha2.workspace = true
tempfile.workspace = true
tokio = { workspace = true, features = ["test-util"] }
uuid.workspace = true
[target.'cfg(unix)'.dev-dependencies]
libc.workspace = true
[workspace]
members = ["crates/*", "macros/*"]
[workspace.package]
version = "0.1.5"
edition = "2024"
rust-version = "1.99"
license = "MIT"
repository = "https://github.com/laravel/rust-framework"
homepage = "https://laravel.com/rust"
# The internal crates have no documentation of their own: `laravel-rust` documents everything they define.
documentation = "https://docs.rs/laravel-rust"
readme = "README.md"
[workspace.dependencies]
laravel_feature = { package = "laravel-rust-feature", path = "crates/feature", version = "=0.1.5", default-features = false }
laravel_schedule = { package = "laravel-rust-schedule", path = "crates/schedule", version = "=0.1.5", default-features = false }
laravel_workflow = { package = "laravel-rust-workflow", path = "crates/workflow", version = "=0.1.5", default-features = false }
laravel_notifications = { package = "laravel-rust-notifications", path = "crates/notifications", version = "=0.1.5", default-features = false }
laravel_events = { package = "laravel-rust-events", path = "crates/events", version = "=0.1.5", default-features = false }
laravel_queue = { package = "laravel-rust-queue", path = "crates/queue", version = "=0.1.5", default-features = false }
laravel_http = { package = "laravel-rust-http", path = "crates/http", version = "=0.1.5", default-features = false }
laravel_client = { package = "laravel-rust-client", path = "crates/client", version = "=0.1.5", default-features = false }
laravel_cache = { package = "laravel-rust-cache", path = "crates/cache", version = "=0.1.5", default-features = false }
laravel_search = { package = "laravel-rust-search", path = "crates/search", version = "=0.1.5", default-features = false }
laravel_reverb = { package = "laravel-rust-reverb", path = "crates/reverb", version = "=0.1.5", default-features = false }
laravel_redis = { package = "laravel-rust-redis", path = "crates/redis", version = "=0.1.5", default-features = false }
laravel_database = { package = "laravel-rust-database", path = "crates/database", version = "=0.1.5", default-features = false }
laravel_console = { package = "laravel-rust-console", path = "crates/console", version = "=0.1.5", default-features = false }
laravel_core = { package = "laravel-rust-core", path = "crates/core", version = "=0.1.5", default-features = false }
laravel-rust-macro-support = { path = "macros/support", version = "=0.1.5" }
laravel-rust-macros = { path = "macros/core", version = "=0.1.5" }
laravel-rust-database-macros = { path = "macros/database", version = "=0.1.5" }
laravel-rust-model-macros = { path = "macros/model", version = "=0.1.5" }
laravel-rust-http-macros = { path = "macros/http", version = "=0.1.5" }
laravel-rust-validation-macros = { path = "macros/validation", version = "=0.1.5" }
laravel-rust-queue-macros = { path = "macros/queue", version = "=0.1.5" }
aes = "0.9"
aes-gcm = "0.11"
anyhow = "1"
async-stream = "0.3"
async-trait = "0.1"
aws-config = { version = "1.13", default-features = false, features = ["rt-tokio", "credentials-process", "sso"] }
aws-sdk-s3 = { version = "1", default-features = false, features = ["sigv4a", "http-1x", "rt-tokio"] }
aws-sdk-sesv2 = { version = "1.143", default-features = false, features = ["rt-tokio"] }
aws-sdk-sqs = { version = "1.115", default-features = false, features = ["rt-tokio"] }
aws-smithy-http-client = { version = "1.5", default-features = false, features = ["rustls-ring"] }
axum = { version = "0.8", features = ["original-uri", "matched-path"] }
axum-core = "0.5"
backtrace = "0.3"
base64 = "0.23"
bcrypt = "0.19"
bigdecimal = { version = "0.4", default-features = false, features = ["std", "serde"] }
bytes = "1"
cap-std = "4"
cbc = { version = "0.2", features = ["alloc"] }
clap = { version = "4.5", features = ["derive", "wrap_help"] }
cliclack = "0.5"
comfy-table = { version = "7.2", default-features = false, features = ["tty"] }
console = "0.16"
cookie = { version = "0.18", features = ["percent-encode"] }
cronexpr = "1.7"
deunicode = "1"
dotenvy = "0.15"
email_address = { version = "0.2.9", default-features = false }
fake = "5.1"
futures-util = { version = "0.3", default-features = false, features = ["std"] }
getrandom = "0.4"
hex = "0.4"
hmac = "0.13"
http = "1"
http-body = "1"
http-body-util = "0.1"
idna = "1"
indexmap = { version = "2", features = ["serde"] }
inertia-laravel-rust = { version = "0.1.1", default-features = false }
infer = "0.19"
inventory = "0.3"
ipnet = "2"
jiff = { version = "1.0.0", features = ["serde", "tzdb-bundle-always"] }
laravel-vite-rust = "0.1.1"
libc = "0.2"
log = "0.4"
mail-builder = { version = "2", default-features = false }
# The version Axum's router uses, so route conflicts are detected exactly as Axum would.
matchit = "=0.8.4"
md-5 = "0.11"
mime_guess = "2"
minijinja = { version = "2", features = ["loader", "json", "urlencode", "loop_controls", "preserve_order"] }
multer = "3"
num-bigint = "0.5"
opentelemetry = { version = "0.33", default-features = false, features = ["trace"] }
# The exporter sends from the batch processor's own thread, so it needs the blocking client.
opentelemetry-otlp = { version = "0.33", default-features = false, features = ["trace", "http-proto", "reqwest-blocking-client", "internal-logs"] }
opentelemetry_sdk = { version = "0.33", default-features = false, features = ["trace", "internal-logs"] }
percent-encoding = "2"
pluralizer = "0.6"
proc-macro2 = "1"
quote = "1"
redis = { version = "1.7", default-features = false, features = ["acl", "cluster-async", "connection-manager", "geospatial", "script", "streams", "tokio-comp", "tokio-rustls-comp"] }
regex = "1"
reqwest = { version = "0.13", default-features = false, features = ["rustls-no-provider", "multipart", "stream"] }
rstest = { version = "0.26", default-features = false }
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order", "raw_value"] }
serde_urlencoded = "0.7"
sha1 = "0.11"
sha2 = "0.11"
shlex = "2"
signal-hook = { version = "0.3.18", default-features = false }
sqlx = { version = "0.9", default-features = false, features = ["runtime-tokio", "tls-rustls-ring", "time", "bigdecimal", "uuid", "json"] }
sqlx-core = { version = "0.9", default-features = false }
subtle = "2"
syn = { version = "2", default-features = false, features = ["derive", "full", "parsing", "proc-macro", "printing", "visit-mut"] }
sync_wrapper = "1"
tempfile = "3"
thiserror = "2"
time = { version = "0.3", default-features = false }
tokio-rustls = { version = "0.26", default-features = false }
tokio-tungstenite = "0.29"
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "process", "rt-multi-thread", "signal", "sync", "time"] }
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.7", features = ["cors", "fs"] }
tracing = "0.1"
tracing-appender = "0.2"
tracing-log = "0.2"
tracing-opentelemetry = { version = "0.34", default-features = false }
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
ulid = { version = "1", default-features = false, features = ["std", "serde"] }
url = "2"
uuid = { version = "1", default-features = false, features = ["std", "serde"] }
zeroize = { version = "1.9", default-features = false, features = ["alloc"] }
[profile.dev]
debug = "line-tables-only"
[profile.dev.package."*"]
debug = false
[workspace.lints.rust]
missing_debug_implementations = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
cast_lossless = "warn"
cloned_instead_of_copied = "warn"
format_collect = "warn"
format_push_string = "warn"
inefficient_to_string = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
needless_pass_by_value = "warn"
redundant_clone = "warn"
return_self_not_must_use = "warn"
unnecessary_wraps = "warn"
[lints]
workspace = true