-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
104 lines (98 loc) · 3.75 KB
/
Cargo.toml
File metadata and controls
104 lines (98 loc) · 3.75 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "ssh-portfolio"
version = "0.1.5"
edition = "2021"
description = "introducing a portfolio as a tui app served over ssh!"
license = "AGPL-3.0-only"
homepage = "https://devcomp.xyz"
repository = "https://git.devcomp.xyz/DevComp/ssh-portfolio"
authors = ["Erica Marigold <hi@devcomp.xyz>"]
build = "build.rs"
# Taken from https://github.com/microsoft/edit/blob/a3a6f5f/Cargo.toml#L20-L31
# We use `opt-level = "s"` as it significantly reduces binary size.
# We could then use the `#[optimize(speed)]` attribute for spot optimizations.
# Unfortunately, that attribute currently doesn't work on intrinsics such as memset.
[profile.release]
codegen-units = 1 # Reduces binary size by ~2%
debug = "full" # No one needs an undebuggable release binary
lto = true # Reduces binary size by ~14%
opt-level = "s" # Reduces binary size by ~25%
split-debuginfo = "packed" # Generates a separate *.dwp/*.dSYM so the binary can get stripped
[profile.dev]
opt-level = 2 # Optimize more than default, see https://github.com/RustCrypto/RSA/issues/144
incremental = true # Improves re-compile times
[features]
default = ["blog"]
blog = [
# Main deps
"dep:atrium-api",
"dep:atrium-xrpc",
"dep:atrium-xrpc-client",
"dep:atrium-common",
"dep:reqwest",
"dep:ipld-core",
"dep:tui-markdown",
"dep:chrono",
"dep:ratatui-image",
"dep:image",
# Build deps
"dep:atrium-codegen",
]
[dependencies]
anyhow = "1.0.90"
atrium-api = { version = "0.25.4", optional = true }
atrium-common = { version = "0.1.2", optional = true }
atrium-xrpc = { version = "0.12.3", optional = true }
atrium-xrpc-client = { version = "0.5.14", optional = true, default-features = false, features = ["reqwest"] }
axum = "0.8.4"
better-panic = "0.3.0"
bstr = "1.11.3"
chrono = { version = "0.4.41", optional = true }
clap = { version = "4.5.20", features = [
"derive",
"cargo",
"wrap_help",
"unicode",
"string",
"unstable-styles",
] }
color-eyre = "0.6.3"
config = "0.15.14"
crossterm = { version = "0.28.1", features = ["serde", "event-stream"] }
default_variant = "0.1.0"
derive_deref = "1.1.1"
directories = "6.0.0"
figlet-rs = "0.1.5"
futures = "0.3.31"
human-panic = "2.0.2"
image = { version = "0.25.6", features = ["jpeg", "png", "webp"], default-features = false, optional = true }
indoc = "2.0.5"
ipld-core = { version = "0.4.2", optional = true }
json5 = "0.4.1"
lazy_static = "1.5.0"
libc = "0.2.161"
mime_guess = "2.0.5"
pretty_assertions = "1.4.1"
ratatui = { version = "0.29.0", features = ["serde", "macros"] }
ratatui-image = { version = "8.0.1", default-features = false, optional = true, features = ["crossterm"] }
reqwest = { version = "0.12", optional = true, default-features = false, features = ["charset", "http2", "rustls-tls"] }
russh = { version = "0.54.3", default-features = false, features = ["flate2", "ring", "rsa"] }
rust-embed = { version = "8.7.2" }
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.132"
internal-russh-forked-ssh-key = { version = "0.6.11", features = ["getrandom", "crypto"] }
signal-hook = "0.3.17"
strip-ansi-escapes = "0.2.0"
strum = { version = "0.27.2", features = ["derive"] }
tokio = { version = "1.40.0", features = ["full"] }
tokio-util = "0.7.12"
tower-http = { version = "0.6.6", features = ["trace"] }
tracing = "0.1.40"
tracing-error = "0.2.0"
tracing-subscriber = { version = "0.3.20", features = ["env-filter", "serde"] }
tui-markdown = { version = "0.3.5", optional = true }
shellexpand = "3.1.1"
[build-dependencies]
anyhow = "1.0.90"
atrium-codegen = { git = "https://github.com/atrium-rs/atrium.git", tag = "bsky-sdk-v0.1.21", optional = true }
vergen-gix = { version = "1.0.9", features = ["build", "cargo", "emit_and_set"] }