Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
60 lines (54 loc) · 1.61 KB
/
Copy pathCargo.toml
File metadata and controls
60 lines (54 loc) · 1.61 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
[workspace]
resolver = "2"
members = [
"sqlshield",
"sqlshield-cli",
"sqlshield-introspect",
"sqlshield-lsp",
"sqlshield-py",
]
# Root `sqlshield-precommit` package is a pre-commit shim; exclude from
# default builds so it doesn't clobber sqlshield-cli's `sqlshield` bin.
default-members = [
"sqlshield",
"sqlshield-cli",
"sqlshield-introspect",
"sqlshield-lsp",
"sqlshield-py",
]
[workspace.package]
version = "0.0.2"
authors = ["David Freire <dev@davidfrei.re>"]
edition = "2021"
rust-version = "1.80"
license = "MIT"
repository = "https://github.com/davidsmfreire/sqlshield"
[workspace.dependencies]
sqlshield = { version = "0.0.2", path = "sqlshield" }
sqlshield-introspect = { version = "0.0.2", path = "sqlshield-introspect" }
# Root package exists solely so `cargo install --path .` (used by
# pre-commit's `language: rust`) succeeds against this workspace. Not
# published; mirrors `sqlshield-cli` and ships the same `sqlshield` bin.
[package]
name = "sqlshield-precommit"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "pre-commit shim that installs the sqlshield CLI from this workspace root"
publish = false
[[bin]]
name = "sqlshield"
path = "sqlshield-cli/src/main.rs"
[features]
default = ["introspect"]
introspect = ["dep:sqlshield-introspect"]
[dependencies]
clap = { version = "4.4.18", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sqlshield = { workspace = true }
sqlshield-introspect = { workspace = true, optional = true }
toml = "0.8"