-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
134 lines (118 loc) · 3.24 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[package]
name = "edgelink-app"
version = "0.1.0"
edition = "2021"
rust-version = "1.77.2"
readme = "README.md"
homepage = "https://github.com/oldrev/edgelink.rs"
description = "EdgeLink is a Node-RED compatible run-time engine in Rust."
build = "build.rs"
license = "Apache 2.0"
authors = ["Li Wei <[email protected]>"]
[[bin]]
name = "edgelinkd"
path = "src/main.rs"
# Enable a small amount of optimization in debug mode
[profile.dev]
opt-level = 0
[profile.ci]
inherits = "release"
debug = false
incremental = false
[profile.release]
opt-level = "z" # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
strip = true # Automatically strip symbols from the binary.
[profile.test]
opt-level = 1 # Enables thin local LTO and some optimizations.
[workspace.dependencies]
bincode = "1"
async-trait = "0.1"
anyhow = { version = "1", features = ["backtrace"] }
log = "0.4"
tokio = "1"
tokio-util = "0.7"
semver = "1"
config = { version = "0.14", default-features = false, features = [
"convert-case",
"toml",
] }
serde = { version = "1" }
serde_json = "1"
dashmap = { version = "6", features = ["serde"] }
rand = "0.8"
base64 = "0.22"
bytes = { version = "1", features = ["std", "serde"] }
chrono = "0.4"
regex = "1"
thiserror = "1"
nom = "7"
tokio-cron-scheduler = "0.11"
bumpalo = "3"
dirs-next = "2"
clap = { version = "4", features = ["derive"] }
itertools = "0.13"
arrayvec = "0.7"
smallvec = "1"
smallstr = { version = "0.3", features = ["serde", "std", "union"] }
inventory = "0.3"
rquickjs = { version = "0.6", features = [
"chrono",
"loader",
"allocator",
"either",
"classes",
"properties",
"array-buffer",
"macro",
"futures",
"parallel",
] }
#llrt_modules = { git = "https://github.com/awslabs/llrt.git", default-features = false, package = "llrt_modules", features = ["buffer", "timers"]}
rquickjs-extra = { git = "https://github.com/rquickjs/rquickjs-extra.git", rev = "c838e60", default-features = false, features = [
"timers",
"console",
] }
log4rs = { version = "1", features = [
"console_appender",
"file_appender",
"rolling_file_appender",
"compound_policy",
"delete_roller",
"fixed_window_roller",
"size_trigger",
"time_trigger",
# "json_encoder",
"pattern_encoder",
"threshold_filter",
"config_parsing",
"toml_format",
], default-features = false }
ctor = "0.2.8"
[dependencies]
clap.workspace = true
dirs-next.workspace = true
anyhow.workspace = true
log.workspace = true
tokio = { workspace = true, features = ["signal"] }
tokio-util.workspace = true
config.workspace = true
semver.workspace = true
serde_json.workspace = true
serde = { workspace = true, features = ["derive"] }
log4rs.workspace = true
edgelink-core = { path = "crates/core", default-features = false }
# Node plug-ins:
edgelink-nodes-dummy = { path = "node-plugins/edgelink-nodes-dummy" }
[dev-dependencies]
[workspace]
members = ["crates/*", "node-plugins/*"]
[package.metadata.bundle]
identifier = "com.github.oldrev.edgelink"
[features]
full = ["default", "rqjs_bindgen"]
default = ["core", "js"]
core = ["edgelink-core/core"]
js = ["edgelink-core/js"]
rqjs_bindgen = ["js", "edgelink-core/rqjs_bindgen"]