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
[]
= "larust-orm"
= true
= true
= true
= true
= true
= true
[]
# Not `workspace = true`: Cargo's dependency-inheritance features are
# *additive only* - a member can never subtract a feature the workspace-
# level entry's own `features = [...]` list already carries (confirmed
# empirically: `default-features = false` on this line doesn't stop
# `sqlite`/`mysql`/`postgres` from all still being inherited, since the
# workspace-level `sqlx` entry lists all three explicitly). Pinned to the
# same version directly instead - the one place this crate's own version
# now needs to be kept in sync with the workspace root's `sqlx` line by
# hand, the real cost of this workaround.
= { = "0.8", = false, = ["runtime-tokio", "any", "derive"] }
= { = true }
= { = true }
= { = true }
# `default = ["sqlite"]`, not all three: this crate is reachable through
# a lot of unguarded `{ workspace = true }` edges elsewhere in this
# workspace (`larust-auth`, `larust-mail`, `larust-testing`, ...) that
# don't (and can't reasonably all be made to) specify `default-features =
# false` - Cargo features are additive/global per build, so *any* one such
# edge left at its own default silently re-activates whatever `default`
# says, for the whole build, regardless of what a generated app's own
# `larust-support` edge explicitly selected. Defaulting to just `sqlite`
# (matching `DB_CONNECTION`'s own default) means every one of those
# unguarded edges harmlessly asks for the same thing a plain `xr new` app
# already wants, instead of silently reintroducing `mysql`/`postgres`.
# `larust-support`'s own edge to this crate still explicitly requests
# `mysql`/`postgres` when a converted app's `DB_CONNECTION` calls for it
# (see `scaffold()`'s `db_driver_feature`) - only the *default*, taken by
# every other, unguarded consumer, is narrowed here. Real cross-backend
# testing (mysql/postgres actually connected to, not just parsed as a URL
# scheme) happens exclusively in `examples/repository_bench`, which has
# its own fully independent, explicit `sqlx` dependency line untouched by
# any of this.
[]
= ["sqlite"]
= ["sqlx/sqlite"]
= ["sqlx/mysql"]
= ["sqlx/postgres"]
[]
= { = true }