-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
75 lines (67 loc) · 1.64 KB
/
Cargo.toml
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
[workspace]
members = [
"apb",
"core",
"cli",
"migrations",
"routes",
"worker",
"web",
"utils/httpsign",
"utils/mdhtml",
"utils/uriproxy",
]
[package]
name = "upub-bin"
version = "0.5.1-dev"
edition = "2021"
authors = [ "alemi <me@alemi.dev>" ]
description = "Traits and types to handle ActivityPub objects"
license = "AGPL-3.0"
keywords = ["activitypub", "activitystreams", "json"]
repository = "https://git.alemi.dev/upub.git"
readme = "README.md"
[[bin]]
name = "upub"
path = "main.rs"
[dependencies]
toml = "0.8"
tracing = "0.1"
tracing-subscriber = "0.3"
clap = { version = "4.5", features = ["derive"] }
signal-hook = "0.3"
signal-hook-tokio = { version = "0.3", features = ["futures-v0_3"] }
tokio = { version = "1.43", features = ["rt-multi-thread", "macros"] }
sea-orm = { version = "1.1", features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls"] }
futures = "0.3"
upub = { path = "core" }
upub-cli = { path = "cli", optional = true }
upub-migrations = { path = "migrations", optional = true }
upub-routes = { path = "routes", optional = true }
upub-worker = { path = "worker", optional = true }
[features]
default = ["serve", "migrate", "cli", "worker"]
serve = ["dep:upub-routes"]
migrate = ["dep:upub-migrations"]
cli = ["dep:upub-cli"]
worker = ["dep:upub-worker"]
web = ["upub-routes?/web"]
web-build-fe = []
# upub: ~38M
# upub-web: ~9M
# [profile.release] # without any tweak
# upub: ~22M
# upub-web.wasm: ~5.8M
[profile.release]
opt-level = 'z'
lto = true
codegen-units = 1
# upub: ~18M
# upub-web.wasm: ~4.1M
[profile.release-tiny]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1
panic = "abort"
strip = "symbols"