File size: 1,828 Bytes
3374e90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/bex-types",
    "crates/bex-pkg",
    "crates/bex-db",
    "crates/bex-wire",
    "crates/bex-js",
    "crates/bex-core",
    "crates/bex-cli",
    "crates/bex-runtime",
    "plugins/bex-imdb",
    "plugins/bex-kaianime",
    "plugins/bex-kisskh",
    "plugins/bex-hianime",
    "plugins/bex-gogoanime",
    "plugins/bex-yts",
    "plugins/bex-yflix",
]
# WASM plugins must be built with `cargo component build` for wasm32-wasip1.
# Exclude them from default `cargo build` to avoid native linker errors
# caused by WIT component model symbol names (e.g. `api#get-articles`).
default-members = [
    "crates/bex-types",
    "crates/bex-pkg",
    "crates/bex-db",
    "crates/bex-wire",
    "crates/bex-js",
    "crates/bex-core",
    "crates/bex-cli",
    "crates/bex-runtime",
]

[workspace.dependencies]
bex-types = { path = "crates/bex-types" }
bex-pkg = { path = "crates/bex-pkg" }
bex-db = { path = "crates/bex-db" }
bex-js = { path = "crates/bex-js" }
bex-core = { path = "crates/bex-core" }
bex-runtime = { path = "crates/bex-runtime" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
anyhow = "1"
thiserror = "1"
tokio = { version = "1", features = ["full"] }
tracing = "0.1"

# Release profile: optimized for small binary size and efficient memory usage.
# No debug symbols, LTO enabled, single codegen unit, abort on panic.
[profile.release]
opt-level = "z"          # Optimize for size ("z" is more aggressive than "s")
lto = true               # Link-Time Optimization — removes dead code across crates
codegen-units = 1         # Single codegen unit — better optimization, slower compile
strip = true             # Strip debug symbols from the binary
panic = "abort"          # Smaller binary — no unwinding tables needed