2021-03-09 13:28:54 +03:00
|
|
|
[package]
|
2021-06-01 15:03:47 +03:00
|
|
|
name = "mcaptcha"
|
2021-03-09 13:28:54 +03:00
|
|
|
version = "0.1.0"
|
2021-03-24 10:13:32 +03:00
|
|
|
description = "mCaptcha - a PoW-based CAPTCHA system"
|
|
|
|
homepage = "https://mcaptcha.org"
|
2021-06-01 15:03:47 +03:00
|
|
|
repository = "https://github.com/mCaptcha/mCaptcha"
|
2021-03-24 10:13:32 +03:00
|
|
|
documentation = "https://mcaptcha.org/docs/"
|
2021-04-30 08:44:29 +03:00
|
|
|
license = "AGPLv3 or later version"
|
2021-03-09 13:28:54 +03:00
|
|
|
authors = ["realaravinth <realaravinth@batsense.net>"]
|
2021-12-18 11:17:01 +03:00
|
|
|
edition = "2021"
|
2021-06-01 15:03:47 +03:00
|
|
|
default-run = "mcaptcha"
|
2021-03-24 10:13:32 +03:00
|
|
|
build = "build.rs"
|
2021-03-09 13:28:54 +03:00
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
2022-05-08 17:32:17 +03:00
|
|
|
|
|
|
|
[workspace]
|
2022-05-14 13:29:40 +03:00
|
|
|
exclude = ["db/db-migrations", "utils/cache-bust"]
|
2022-07-20 15:12:12 +03:00
|
|
|
memebers = [".", "db/db-core", "db/db-sqlx-postgres", "db/db-sqlx-maria"]
|
2022-05-08 17:32:17 +03:00
|
|
|
|
2021-03-10 18:13:25 +03:00
|
|
|
[[bin]]
|
2021-06-01 15:03:47 +03:00
|
|
|
name = "mcaptcha"
|
2021-03-10 18:13:25 +03:00
|
|
|
path = "./src/main.rs"
|
|
|
|
|
2021-03-09 13:28:54 +03:00
|
|
|
[dependencies]
|
2022-05-07 13:40:14 +03:00
|
|
|
actix-web = "4.0.1"
|
|
|
|
actix = "0.13"
|
|
|
|
actix-identity = "0.4.0"
|
|
|
|
actix-http = "3.0.4"
|
2021-06-30 17:43:12 +03:00
|
|
|
actix-rt = "2"
|
2022-05-07 13:40:14 +03:00
|
|
|
actix-cors = "0.6.1"
|
2021-06-30 17:43:12 +03:00
|
|
|
actix-service = "2.0.0"
|
2022-05-27 13:53:33 +03:00
|
|
|
async-trait = "0.1.51"
|
2021-03-30 18:19:09 +03:00
|
|
|
mime_guess = "2.0.3"
|
2022-05-07 13:40:14 +03:00
|
|
|
rust-embed = "6.4.0"
|
2021-07-03 20:02:40 +03:00
|
|
|
cache-buster = { git = "https://github.com/realaravinth/cache-buster" }
|
2021-03-26 19:48:01 +03:00
|
|
|
|
2021-06-30 17:43:12 +03:00
|
|
|
futures = "0.3.15"
|
2021-11-29 15:02:33 +03:00
|
|
|
tokio = { version = "1.14", features = ["sync"]}
|
2021-03-09 13:28:54 +03:00
|
|
|
|
2022-07-20 15:12:12 +03:00
|
|
|
sqlx = { version = "0.5.13", features = [ "runtime-actix-rustls", "postgres", "time", "offline", "mysql"] }
|
2021-06-13 11:05:09 +03:00
|
|
|
argon2-creds = { branch = "master", git = "https://github.com/realaravinth/argon2-creds"}
|
2021-06-29 17:12:07 +03:00
|
|
|
#argon2-creds = { version="*", path = "../../argon2-creds/" }
|
2021-03-24 12:01:11 +03:00
|
|
|
config = "0.11"
|
2022-05-07 13:40:14 +03:00
|
|
|
validator = { version = "0.15", features = ["derive"]}
|
2021-03-09 13:28:54 +03:00
|
|
|
|
2022-05-07 13:40:14 +03:00
|
|
|
derive_builder = "0.11"
|
2021-03-09 13:28:54 +03:00
|
|
|
derive_more = "0.99"
|
|
|
|
|
|
|
|
serde = "1"
|
|
|
|
serde_json = "1"
|
|
|
|
|
|
|
|
url = "2.2"
|
2022-05-07 13:40:14 +03:00
|
|
|
urlencoding = "2.1.0"
|
2021-03-09 13:28:54 +03:00
|
|
|
|
2021-03-10 18:13:25 +03:00
|
|
|
pretty_env_logger = "0.4"
|
2021-03-09 13:28:54 +03:00
|
|
|
log = "0.4"
|
|
|
|
|
|
|
|
lazy_static = "1.4"
|
|
|
|
|
2021-03-10 18:13:25 +03:00
|
|
|
|
2023-06-28 20:19:08 +03:00
|
|
|
libmcaptcha = { version = "0.2.3", git = "https://github.com/mCaptcha/libmcaptcha", features = ["full"], tag ="0.2.3" }
|
|
|
|
#libmcaptcha = { branch = "master", git = "https://github.com/mCaptcha/libmcaptcha", features = ["full"] }
|
2021-06-11 17:01:03 +03:00
|
|
|
#libmcaptcha = { path = "../libmcaptcha", features = ["full"]}
|
2021-03-10 18:13:25 +03:00
|
|
|
|
2021-03-11 14:15:43 +03:00
|
|
|
rand = "0.8"
|
2021-03-30 11:17:42 +03:00
|
|
|
|
2022-05-07 13:40:14 +03:00
|
|
|
sailfish = "0.4.0"
|
2021-04-01 12:53:36 +03:00
|
|
|
|
2021-05-08 11:29:13 +03:00
|
|
|
mime = "0.3.16"
|
|
|
|
|
2022-08-09 00:21:40 +03:00
|
|
|
num_cpus = "1.13.1"
|
|
|
|
|
2021-06-29 18:38:40 +03:00
|
|
|
lettre = { version = "0.10.0-rc.3", features = [
|
|
|
|
"builder",
|
|
|
|
"tokio1",
|
|
|
|
"tokio1-native-tls",
|
|
|
|
"smtp-transport"
|
|
|
|
]}
|
|
|
|
|
2023-03-25 08:03:34 +03:00
|
|
|
openssl = { version = "0.10.48", features = ["vendored"] }
|
2023-06-30 00:50:57 +03:00
|
|
|
uuid = { version = "1.4.0", features = ["v4", "serde"] }
|
2021-07-15 15:37:12 +03:00
|
|
|
|
2022-05-08 17:32:17 +03:00
|
|
|
|
|
|
|
[dependencies.db-core]
|
|
|
|
path = "./db/db-core"
|
|
|
|
|
|
|
|
[dependencies.db-sqlx-postgres]
|
|
|
|
path = "./db/db-sqlx-postgres"
|
|
|
|
|
2022-07-20 15:12:12 +03:00
|
|
|
[dependencies.db-sqlx-maria]
|
|
|
|
path = "./db/db-sqlx-maria"
|
|
|
|
|
2022-05-07 13:40:14 +03:00
|
|
|
[dependencies.my-codegen]
|
|
|
|
git = "https://github.com/realaravinth/actix-web"
|
|
|
|
package = "actix-web-codegen"
|
|
|
|
|
|
|
|
[dependencies.actix-auth-middleware]
|
|
|
|
version = "0.2.0"
|
|
|
|
git = "https://github.com/realaravinth/actix-auth-middleware"
|
|
|
|
features = ["actix_identity_backend"]
|
2021-06-29 18:38:40 +03:00
|
|
|
|
2021-04-01 12:53:36 +03:00
|
|
|
[build-dependencies]
|
|
|
|
serde_json = "1"
|
2022-07-20 15:12:12 +03:00
|
|
|
sqlx = { version = "0.5.13", features = [ "runtime-actix-rustls", "postgres", "time", "offline", "mysql" ] }
|
2021-04-10 17:49:59 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-08-09 00:21:40 +03:00
|
|
|
pow_sha256 = { version = "0.3.1", git = "https://github.com/mcaptcha/pow_sha256", tag="0.3.1" }
|
2022-05-07 13:40:14 +03:00
|
|
|
awc = "3.0.0"
|
2021-06-12 11:14:18 +03:00
|
|
|
|
|
|
|
|
|
|
|
[target.x86_64-unknown-linux-musl]
|
|
|
|
linker = "x86_64"
|