aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml49
1 files changed, 33 insertions, 16 deletions
diff --git a/Cargo.toml b/Cargo.toml
index d65ce6f..5087e2c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,11 @@
[package]
name = "libquassel"
+description = "Native rust implementation of the Quassel protocol and library functions"
version = "0.1.0"
authors = ["Max Audron <audron@cocaine.farm>"]
+license = "ISC"
+homepage = "https://gitlab.com/cocainefarm/libquassel"
+repository = "https://gitlab.com/cocainefarm/libquassel"
edition = "2018"
autobins = true
@@ -15,29 +19,42 @@ either = "1.5"
time = "0.2"
async-trait = "0.1"
-bytes = { version = "0.5" }
+default-macro = { path = "../default-macro" }
+
+bytes = { version = "1.0" }
flate2 = { version = "1.0", features = ["tokio"], optional = true }
-tokio = { version = "0.2", features = ["full"], optional = true }
-tokio-util = { version = "0.2", features = ["codec"], optional = true }
-tokio-tls = { version = "0.3", optional = true }
-native-tls = { version = "0.2", optional = true }
+tokio = { version = "1.0", features = [], optional = true }
+tokio-util = { version = "0.6", features = ["codec"], optional = true }
futures-util = { version = "0.3", features = ["std"], optional = true }
futures = { version = "0.3", optional = true }
-pretty_env_logger = { version = "0.4", optional = true }
[features]
framing = ["tokio", "tokio-util", "flate2"]
-client = ["tokio", "tokio-util", "tokio-tls", "native-tls", "futures", "futures-util", "framing", "pretty_env_logger"]
+
+# Enable all the quassel features
+all-quassel-features = ["long-message-id", "long-time", "rich-messages", "sender-prefixes"]
+
+# Serialize message IDs as i64
+long-message-id = []
+# Serialize Message Time as i64
+long-time = []
+# Add avatar url and real name to messages
+rich-messages = []
+# Show prefixes for senders in backlog
+sender-prefixes = []
+
default = []
+[package.metadata.docs.rs]
+# document all features
+all-features = true
+# defines the configuration attribute `docsrs`
+rustdoc-args = ["--cfg", "docsrs"]
+
[dev-dependencies]
-futures = { version = "0.3" }
-flate2 = { version = "1.0", features = ["tokio"] }
-tokio = { version = "0.2", features = ["full"] }
-tokio-util = { version = "0.2", features = ["codec"] }
-tokio-test = { version = "0.2" }
-
-[[bin]]
-name = "quassel-client"
-required-features = ["client"]
+# futures = { version = "0.3" }
+# flate2 = { version = "1.0", features = ["tokio"] }
+# tokio = { version = "0.3", features = ["full"] }
+# tokio-util = { version = "0.5", features = ["codec"] }
+# tokio-test = { version = "0.3" }