2020-10-31 19:53:03 +00:00
|
|
|
[package]
|
2020-11-25 05:42:09 +00:00
|
|
|
name = "kochab"
|
2020-12-03 05:09:51 +00:00
|
|
|
version = "0.1.0-unreleased"
|
2020-11-25 07:04:37 +00:00
|
|
|
description = "Ergonomic Gemini SDK"
|
2020-11-25 05:42:09 +00:00
|
|
|
authors = ["Emii Tatsuo <emi@alchemi.dev>", "panicbit <panicbit.dev@gmail.com>"]
|
2020-11-25 07:04:37 +00:00
|
|
|
license = "Hippocratic-2.1"
|
|
|
|
keywords = ["gemini", "server", "smallnet"]
|
|
|
|
categories = ["asynchronous", "network-programming"]
|
2020-10-31 19:53:03 +00:00
|
|
|
edition = "2018"
|
2020-11-30 22:46:28 +00:00
|
|
|
repository = "https://gitlab.com/Alch_Emi/kochab"
|
2020-11-25 07:04:37 +00:00
|
|
|
readme = "README.md"
|
|
|
|
include = ["src/**", "Cargo.*", "CHANGELOG.md", "LICENSE*", "README.md"]
|
2020-10-31 19:53:03 +00:00
|
|
|
|
2020-11-19 07:02:11 +00:00
|
|
|
[features]
|
2020-12-03 05:52:25 +00:00
|
|
|
default = ["certgen"]
|
2020-12-01 02:18:37 +00:00
|
|
|
user_management = ["sled", "bincode", "serde/derive", "crc32fast", "lazy_static"]
|
2020-12-01 19:43:15 +00:00
|
|
|
user_management_advanced = ["rust-argon2", "user_management"]
|
2020-11-23 15:01:53 +00:00
|
|
|
user_management_routes = ["user_management"]
|
2020-11-19 15:21:32 +00:00
|
|
|
serve_dir = ["mime_guess", "tokio/fs"]
|
2020-11-24 18:58:18 +00:00
|
|
|
ratelimiting = ["dashmap"]
|
2020-12-01 07:31:08 +00:00
|
|
|
certgen = ["rcgen", "gemini_srv"]
|
2020-12-03 13:10:50 +00:00
|
|
|
gemini_srv = ["tokio-rustls", "webpki", "rustls", "ring"]
|
|
|
|
scgi_srv = ["base64"]
|
2020-11-19 07:02:11 +00:00
|
|
|
|
2020-10-31 19:53:03 +00:00
|
|
|
[dependencies]
|
|
|
|
anyhow = "1.0.33"
|
2020-11-19 15:21:32 +00:00
|
|
|
tokio = { version = "0.3.1", features = ["io-util","net","time", "rt"] }
|
2020-10-31 19:53:03 +00:00
|
|
|
uriparse = "0.6.3"
|
|
|
|
percent-encoding = "2.1.0"
|
|
|
|
log = "0.4.11"
|
2020-12-03 13:10:50 +00:00
|
|
|
ring = { version = "0.16.15", optional = true }
|
|
|
|
base64 = { version = "0.13.0", optional = true }
|
2020-12-01 02:18:37 +00:00
|
|
|
lazy_static = { version = "1.4.0", optional = true }
|
2020-12-05 16:49:17 +00:00
|
|
|
rustls = { version = "0.19", features = ["dangerous_configuration"], optional = true}
|
2020-12-01 07:31:08 +00:00
|
|
|
webpki = { version = "0.21.0", optional = true}
|
2020-12-05 16:49:17 +00:00
|
|
|
tokio-rustls = { version = "0.21.0", optional = true}
|
2020-11-19 07:02:11 +00:00
|
|
|
mime_guess = { version = "2.0.3", optional = true }
|
2020-11-24 18:58:18 +00:00
|
|
|
dashmap = { version = "3.11.10", optional = true }
|
2020-11-16 06:13:16 +00:00
|
|
|
sled = { version = "0.34.6", optional = true }
|
|
|
|
bincode = { version = "1.3.1", optional = true }
|
|
|
|
serde = { version = "1.0", optional = true }
|
2020-11-19 21:07:52 +00:00
|
|
|
rust-argon2 = { version = "0.8.2", optional = true }
|
2020-11-16 06:13:16 +00:00
|
|
|
crc32fast = { version = "1.2.1", optional = true }
|
2020-11-25 20:39:00 +00:00
|
|
|
rcgen = { version = "0.8.5", optional = true }
|
2020-11-14 02:56:50 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
env_logger = "0.8.1"
|
2020-11-19 16:08:20 +00:00
|
|
|
tokio = { version = "0.3.1", features = ["macros", "rt-multi-thread", "sync"] }
|
2020-11-24 21:48:28 +00:00
|
|
|
|
2020-11-16 06:13:16 +00:00
|
|
|
[[example]]
|
|
|
|
name = "user_management"
|
2020-11-23 15:01:53 +00:00
|
|
|
required-features = ["user_management_routes"]
|
2020-11-14 02:56:50 +00:00
|
|
|
|
2020-11-24 21:50:28 +00:00
|
|
|
[[example]]
|
|
|
|
name = "serve_dir"
|
|
|
|
required-features = ["serve_dir"]
|
2020-11-25 04:04:26 +00:00
|
|
|
|
2020-11-24 21:48:28 +00:00
|
|
|
[[example]]
|
|
|
|
name = "ratelimiting"
|
|
|
|
required-features = ["ratelimiting"]
|
2020-12-11 19:28:30 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
rustc-args = ["--cfg", "docsrs"]
|