-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathCargo.toml
More file actions
57 lines (49 loc) · 1.27 KB
/
Cargo.toml
File metadata and controls
57 lines (49 loc) · 1.27 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
[workspace]
resolver = "2"
members = [
"crates/polyglot-sql",
"crates/polyglot-sql-function-catalogs",
"crates/polyglot-sql-wasm",
"crates/polyglot-sql-ffi",
"crates/polyglot-sql-python",
]
exclude = [
"examples/rust",
]
[workspace.package]
version = "0.3.5"
edition = "2021"
license = "MIT"
authors = ["polyglot contributors"]
repository = "https://github.com/tobilg/polyglot"
homepage = "https://github.com/tobilg/polyglot"
documentation = "https://docs.rs/polyglot-sql"
description = "SQL dialect translator compiled to WebAssembly"
keywords = ["sql", "transpile", "dialect", "parser", "wasm"]
categories = ["compilers", "parser-implementations", "wasm"]
[workspace.dependencies]
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# WASM support
wasm-bindgen = "0.2"
js-sys = "0.3"
web-sys = "0.3"
# Error handling
thiserror = "1.0"
# Utilities
unicode-segmentation = "1.10"
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
codegen-units = 1 # Better optimization
panic = "abort" # Smaller binary
strip = true # Strip symbols
[profile.bench]
inherits = "release"
opt-level = 3
lto = true
codegen-units = 1
[profile.ffi_release]
inherits = "release"
panic = "unwind"