gurk-rs: working version
This commit is contained in:
parent
af606c11d2
commit
df3fdba5eb
@ -26,10 +26,15 @@ BUILD_DEPENDS = devel/protobuf \
|
||||
|
||||
CONFIGURE_STYLE = cargo
|
||||
|
||||
RELEASE_DIR = ${MODCARGO_TARGET_DIR}/release
|
||||
|
||||
post-configure:
|
||||
cat ${FILESDIR}/config >> ${WRKDIR}/.cargo/config
|
||||
sed -i.bak 's/opt-level = 2/opt-level = 0/g' ${WRKDIR}/.cargo/config
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${RELEASE_DIR}/gurk ${PREFIX}/bin/
|
||||
|
||||
.include "crates.inc"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,92 +0,0 @@
|
||||
[package]
|
||||
name = "gurk"
|
||||
description = "Signal messenger client for terminal"
|
||||
version = "0.3.0"
|
||||
authors = ["boxdot <d@zerovolt.org>"]
|
||||
edition = "2021"
|
||||
keywords = ["signal", "tui"]
|
||||
repository = "https://github.com/boxdot/gurk-rs"
|
||||
license = "AGPL-3.0-only"
|
||||
categories = ["command-line-utilities"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace]
|
||||
members = ["xtask"]
|
||||
|
||||
[profile.dev.package.miniz_oxide]
|
||||
# This speeds up `cargo xtask dist`.
|
||||
opt-level = 0
|
||||
|
||||
[profile.release]
|
||||
opt-level = 0
|
||||
debug = 0
|
||||
lto = false
|
||||
|
||||
[features]
|
||||
dev = ["prost", "base64"]
|
||||
|
||||
[dependencies]
|
||||
presage = { git = "https://github.com/whisperfish/presage", rev = "f84d958", default-features = false, features = ["sled-config-store"] }
|
||||
|
||||
anyhow = "1.0.40"
|
||||
async-trait = "0.1.51"
|
||||
chrono = { version = "0.4.22", features = ["serde"] }
|
||||
crossterm = { version = "0.19.0", features = ["event-stream"] }
|
||||
derivative = "2.2.0"
|
||||
dirs = "3.0.2"
|
||||
emoji = "0.2.1"
|
||||
gh-emoji = "1.0.3"
|
||||
hostname = "0.3.1"
|
||||
itertools = "0.10.0"
|
||||
log-panics = "2.0.0"
|
||||
mime_guess = "2.0.3"
|
||||
notify-rust = "4.5.8"
|
||||
opener = "0.5.0"
|
||||
phonenumber = "0.3.1"
|
||||
regex-automata = "0.1.10"
|
||||
scopeguard = "1.1.0"
|
||||
serde = { version = "1.0.125", features = ["derive"] }
|
||||
serde_json = "1.0.64"
|
||||
textwrap = "0.14.2"
|
||||
tokio = { version = "1.5.0", default-features = false, features = ["rt-multi-thread", "macros", "net", "time"] }
|
||||
tokio-stream = "0.1.5"
|
||||
toml = "0.5.8"
|
||||
tui = { version = "0.15.0", default-features = false, features = ["crossterm"] }
|
||||
unicode-width = "0.1.8"
|
||||
uuid = { version = "1.2", features = ["v4"] }
|
||||
whoami = "1.1.2"
|
||||
tracing = "0.1.35"
|
||||
tracing-appender = "0.2.2"
|
||||
tracing-subscriber = "0.3.11"
|
||||
futures-channel = "0.3.24"
|
||||
qr2term = "0.3.0"
|
||||
clap = { version = "4.0.18", features = ["derive"] }
|
||||
|
||||
# dev feature dependencies
|
||||
prost = { version = "0.10.0", optional = true }
|
||||
base64 = { version = "0.13.0", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
quickcheck = "1.0.3"
|
||||
quickcheck_macros = "1.0.0"
|
||||
tempfile = "3.2.0"
|
||||
criterion = { version = "0.4", features = ["async_tokio", "html_reports"] }
|
||||
|
||||
[[bench]]
|
||||
name = "app"
|
||||
harness = false
|
||||
|
||||
# [patch."https://github.com/whisperfish/presage.git"]
|
||||
# presage = { path = "../presage" }
|
||||
|
||||
# [patch."https://github.com/whisperfish/libsignal-service-rs"]
|
||||
# libsignal-service = { path = "../libsignal-service-rs/libsignal-service" }
|
||||
# libsignal-service-hyper = { path = "../libsignal-service-rs/libsignal-service-hyper" }
|
||||
|
||||
# [patch."https://github.com/signalapp/libsignal-client"]
|
||||
# libsignal-protocol = { path = "../libsignal-client/rust/protocol" }
|
||||
|
||||
[patch.crates-io]
|
||||
# signal-protocol uses a fork of this library via the patch mechanism of cargo.
|
||||
# Since it is not transitive, we have to add the patch here explicitly.
|
||||
"curve25519-dalek" = { git = 'https://github.com/signalapp/curve25519-dalek', branch = 'lizard2' }
|
@ -1,50 +0,0 @@
|
||||
[net]
|
||||
offline = true
|
||||
[source.modcargo]
|
||||
directory = '/data/pobj/gurk-rs-0.3.0/gurk-rs-0.3.0/modcargo-crates'
|
||||
[source.crates-io]
|
||||
replace-with = 'modcargo'
|
||||
|
||||
[profile.release]
|
||||
opt-level = 2
|
||||
debug = 0
|
||||
debug-assertions = false
|
||||
overflow-checks = false
|
||||
lto = false
|
||||
panic = 'unwind'
|
||||
incremental = false
|
||||
codegen-units = 4
|
||||
rpath = false
|
||||
|
||||
[profile.bench]
|
||||
opt-level = 2
|
||||
debug = 0
|
||||
debug-assertions = false
|
||||
overflow-checks = false
|
||||
lto = false
|
||||
panic = 'unwind'
|
||||
incremental = false
|
||||
codegen-units = 4
|
||||
rpath = false
|
||||
[source."https://github.com/signalapp/curve25519-dalek"]
|
||||
git = "https://github.com/signalapp/curve25519-dalek"
|
||||
branch = "lizard2"
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source."https://github.com/signalapp/libsignal"]
|
||||
git = "https://github.com/signalapp/libsignal"
|
||||
tag = "v0.20.0"
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source."https://github.com/whisperfish/libsignal-service-rs"]
|
||||
git = "https://github.com/whisperfish/libsignal-service-rs"
|
||||
rev = "8666ba56f47e405aaf8ed243be6e2ad1b5ad68c1"
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source."https://github.com/whisperfish/presage"]
|
||||
git = "https://github.com/whisperfish/presage"
|
||||
rev = "f84d958"
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
@ -1 +1,3 @@
|
||||
|
||||
.crates.toml
|
||||
.crates2.json
|
||||
@bin bin/gurk
|
||||
|
Loading…
Reference in New Issue
Block a user