forked from ipvm-wg/homestar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
104 lines (95 loc) · 2.84 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
[workspace]
members = [
"examples/*",
"homestar-core",
"homestar-functions/*",
"homestar-runtime",
"homestar-wasm",
]
default-members = ["homestar-core", "homestar-runtime", "homestar-wasm"]
resolver = "2"
[workspace.package]
authors = [
"Zeeshan Lakhani <zeeshan@fission.codes>",
"Brooklyn Zelenka <hello@brooklynzelenka.com>",
]
edition = "2021"
license = "Apache"
repository = "https://github.com/ipvm-wg/homestar"
rust-version = "1.73.0"
version = "0.1.0"
[workspace.dependencies]
anyhow = { version = "1.0", features = ["backtrace"] }
async-trait = "0.1"
atomic_refcell = "0.1"
byte-unit = { version = "4.0", default-features = false }
chrono = { version = "0.4", default-features = false, features = [
"clock",
"std",
] }
enum-assoc = "1.1"
enum-as-inner = "0.6"
faststr = { version = "0.2", default-features = false, features = ["serde"] }
futures = { version = "0.3", default-features = false }
humantime = { version = "2.1", default-features = false }
itertools = "0.11"
libipld = { version = "0.16", default-features = false, features = [
"serde-codec",
"dag-cbor",
"dag-json",
"derive",
] }
rand = { version = "0.8", default-features = false }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_ipld_dagcbor = { version = "0.3", default-features = false, features = [
"std",
] }
thiserror = "1.0"
tokio = { version = "1.33", default-features = false, features = [
"fs",
"io-util",
"io-std",
"macros",
"rt",
"rt-multi-thread",
"signal",
"sync",
"tracing",
] }
tracing = { version = "0.1", default-features = false }
ucan = { version = "0.4", default-features = false }
ucan-key-support = "0.1"
[profile.dev.package."*"]
debug-assertions = false
# Speedup build on macOS
# See https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#splitting-debug-information
[profile.dev]
debug-assertions = true
split-debuginfo = "unpacked"
[profile.release]
# compiling with link time optimizations (LTO)
lto = true
[profile.release.package.homestar-core]
debug-assertions = false
[profile.release.package.homestar-runtime]
# Will slow-down compile, but improve perf on generated code.
codegen-units = 1
debug-assertions = false
[profile.release.package.homestar-wasm]
# match wasmtime
opt-level = 0
debug-assertions = false
# Example: `cargo build -p homestar-functions-test --target wasm32-unknown-unknown --profile release-wasm-fn`
[profile.release-wasm-fn]
inherits = "release"
# Will slow-down compile, but improve perf on generated code.
codegen-units = 1
# Tell `rustc` to optimize for small code size.
opt-level = "z" # 'z' to optimize "aggressively" for size
# Strip debug symbols
# "symbols" issue: https://github.com/rust-lang/rust/issues/93294
strip = "symbols"
# Amount of debug information.
# 0/false: no debug info at all; 1: line tables only; 2/true: full debug info
debug = false
debug-assertions = false