-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
81 lines (70 loc) · 2.85 KB
/
Cargo.toml
File metadata and controls
81 lines (70 loc) · 2.85 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
[package]
name = "openworkers-cli"
version = "0.3.9"
edition = "2024"
license = "MIT"
description = "CLI for OpenWorkers - Self-hosted Cloudflare Workers runtime"
repository = "https://github.com/openworkers/openworkers-cli"
homepage = "https://github.com/openworkers/openworkers"
readme = "README.md"
keywords = ["workers", "serverless", "edge", "runtime", "cli"]
categories = ["command-line-utilities", "development-tools"]
authors = ["OpenWorkers Team"]
[[bin]]
name = "ow"
path = "src/main.rs"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/ow-{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/ow-linux-x86_64.tar.gz"
[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/ow-linux-aarch64.tar.gz"
[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/ow-macos-x86_64.tar.gz"
[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/ow-macos-aarch64.tar.gz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/ow-windows-x86_64.exe.zip"
pkg-fmt = "zip"
[features]
default = ["mcp"]
mcp = ["dep:rmcp", "dep:schemars"]
[dependencies]
clap = { version = "4", features = ["derive"] }
color-print = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
dirs = "6"
thiserror = "2"
colored = "3"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "chrono", "uuid", "tls-rustls"] }
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["serde", "v4"] }
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls", "multipart", "stream"] }
sha2 = "0.10"
hex = "0.4"
base64 = "0.22"
zip = { version = "7", default-features = false, features = ["deflate"] }
hmac = "0.12"
pbkdf2 = { version = "0.12", features = ["hmac"] }
rand = "0.9"
mime_guess = "2"
futures = "0.3"
url = "2"
rmcp = { version = "0.15", features = ["macros", "server", "transport-io"], optional = true }
schemars = { version = "1", optional = true }
rpassword = "7.4.0"
# https://doc.rust-lang.org/cargo/reference/profiles.html
# https://github.com/johnthagen/min-sized-rust?tab=readme-ov-file#minimizing-rust-binary-size
[profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
incremental = true # Enable incremental compilation.
codegen-units = 1 # Use a single codegen unit to optimize for size.
lto = true # Enable link-time optimization.
[dev-dependencies]
tempfile = "3"
uuid = { version = "1", features = ["v4"] }