-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
84 lines (74 loc) · 2.18 KB
/
Cargo.toml
File metadata and controls
84 lines (74 loc) · 2.18 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
[workspace]
members = [
".",
"crates/codegen",
"crates/ddl",
"crates/tern-migration-wit",
"crates/tern-migration-guest",
"crates/tern-migration-runner",
]
resolver = "3"
[package]
name = "tern"
version = "0.2.0"
edition = "2024"
repository = "https://github.com/wack/tern"
[[bin]]
name = "tern"
path = "src/bin/main.rs"
[dependencies]
# Workspace crates
tern-ddl = { path = "crates/ddl" }
tern-migration-wit = { path = "crates/tern-migration-wit" }
tern-migration-guest = { path = "crates/tern-migration-guest" }
tern-migration-runner = { path = "crates/tern-migration-runner" }
# WebAssembly runtime and tooling
wasmtime = { version = "41", features = ["component-model", "cranelift"] }
wasmtime-wasi = { version = "41" }
wasm-encoder = "0.227"
wit-component = "0.227"
async-trait = "0.1.89"
bon = "3.8.1"
# OCI image generation
oci-spec = "0.8.4"
flate2 = "1.1"
tar = "0.4"
sha2 = "0.10"
jiff = { version = "0.2.1", features = ["serde"] }
blake3 = "1"
hex = "0.4"
serde_json = "1.0"
clap = { version = "4.5.53", features = ["derive", "env"] }
miette = { version = "7.6.0", features = ["fancy"] }
nutype = { version = "0.6.2", features = ["serde"] }
pretty_assertions = "1.4.1"
serde = { version = "1.0.228", features = ["derive"] }
static_assertions = "1.1.0"
thiserror = "2.0.17"
tokio = { version = "1.48.0", features = ["full"] }
tokio-postgres = "0.7"
tokio-postgres-rustls = "0.13"
rustls = "0.23"
webpki-roots = "0.26"
tracing = { version = "0.1.43", features = ["attributes"] }
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "json"] }
tokio-rustls = "0.26.4"
tempfile = "3.16"
glob = "0.3"
# PGLite integration (embedded PostgreSQL via WASM)
pglite-oxide = { version = "0.1", optional = true }
anstream = "0.6.21"
owo-colors = "4.2.3"
[features]
default = ["pglite"]
pglite = ["dep:pglite-oxide"]
# Enable embedded WASI components for the new compilation pipeline.
# This feature is enabled by build.rs when the wasm32-wasip2 target is available
# and the components have been successfully compiled.
embedded-wasi = []
[dev-dependencies]
insta = { version = "1.42", features = ["yaml"] }
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"