From aca6d26d3b7d338ce95d88c58a557236024992fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 11 Nov 2020 19:32:15 +0100 Subject: build without voice --- Cargo.toml | 15 ++++++++++++--- README.md | 20 +++++++++----------- TODO | 4 ++-- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3ae0c4e..c9eefec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,9 +7,18 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -discord = { git = "https://github.com/SpaceManiac/discord-rs" } #TODO no voice futures = "0.3" -serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" slack = "0.25" -tokio = { version = "0.2", features = ["full"] } #TODO actual features + +[dependencies.discord] +git = "https://github.com/SpaceManiac/discord-rs" +default-features = false + +[dependencies.serde] +version = "1.0" +features = [ "derive" ] + +[dependencies.tokio] +version = "0.2" +features = [ "macros", "sync" ] diff --git a/README.md b/README.md index 88718de..bf5c6d5 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,21 @@ reminders. The binary itself depends on: -- Opus (see TODO) - OpenSSL ... as well as the usual suspects: ``` $ ldd target/debug/agenda-bot - linux-vdso.so.1 (0x00007ffcc14e5000) - libopus.so.0 => /usr/lib/libopus.so.0 (0x00007fe327d4b000) - libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007fe327cbb000) - libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007fe3279dd000) - libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fe3279d7000) - libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fe3279b5000) - libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fe32799b000) - libc.so.6 => /usr/lib/libc.so.6 (0x00007fe3277d0000) - /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fe3290dd000) - libm.so.6 => /usr/lib/libm.so.6 (0x00007fe32768a000) + linux-vdso.so.1 (0x00007ffc353fd000) + libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f58987d2000) + libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f58984f4000) + libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f58984ee000) + libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f58984cc000) + libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f58984b2000) + libc.so.6 => /usr/lib/libc.so.6 (0x00007f58982e9000) + /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f5899b1b000) + libm.so.6 => /usr/lib/libm.so.6 (0x00007f58981a1000) ``` It has only been tested on Linux. diff --git a/TODO b/TODO index 45d07ca..36d8468 100644 --- a/TODO +++ b/TODO @@ -15,14 +15,14 @@ FEATURES: * mention the bot to do stuff? ISSUES: -* build without voice support -* build only needed tokio features * sending to slack is very slow DONE: * login * send messages both ways * readme +* build without voice support +* build only needed tokio features LATER: (rough ordering and scope) * send reminders -- cgit v1.2.1