mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2024-11-26 11:25:58 +03:00
udpate deps and test openapi spec
This commit is contained in:
parent
6eb75d7a66
commit
f2f8632679
6 changed files with 1213 additions and 909 deletions
700
Cargo.lock
generated
700
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
14
Cargo.toml
14
Cargo.toml
|
@ -28,21 +28,21 @@ members = [
|
|||
]
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.0.0-beta.8"
|
||||
actix-web = "4.0.0-beta.12"
|
||||
actix = "0.12"
|
||||
actix-identity = "0.4.0-beta.2"
|
||||
actix-http = "3.0.0-beta.9"
|
||||
actix-identity = "0.4.0-beta.4"
|
||||
actix-http = "3.0.0-beta.13"
|
||||
actix-rt = "2"
|
||||
actix-cors = "0.6.0-beta.2"
|
||||
actix-cors = "0.6.0-beta.4"
|
||||
actix-service = "2.0.0"
|
||||
my-codegen = {package = "actix-web-codegen", git ="https://github.com/realaravinth/actix-web"}
|
||||
my-codegen = {version="0.5.0-beta.5", package = "actix-web-codegen", git ="https://github.com/realaravinth/actix-web"}
|
||||
|
||||
mime_guess = "2.0.3"
|
||||
rust-embed = "6.0.0"
|
||||
cache-buster = { git = "https://github.com/realaravinth/cache-buster" }
|
||||
|
||||
futures = "0.3.15"
|
||||
tokio = { version = "1", features = ["sync"]}
|
||||
tokio = { version = "1.14", features = ["sync"]}
|
||||
|
||||
sqlx = { version = "0.5.5", features = [ "runtime-actix-rustls", "postgres", "time", "offline" ] }
|
||||
argon2-creds = { branch = "master", git = "https://github.com/realaravinth/argon2-creds"}
|
||||
|
@ -91,7 +91,7 @@ sqlx = { version = "0.5.5", features = [ "runtime-actix-rustls", "postgres", "ti
|
|||
|
||||
[dev-dependencies]
|
||||
pow_sha256 = { version = "0.2.1", git = "https://github.com/mcaptcha/pow_sha256" }
|
||||
awc = "3.0.0-beta.7"
|
||||
awc = "3.0.0-beta.11"
|
||||
|
||||
|
||||
[target.x86_64-unknown-linux-musl]
|
||||
|
|
7
Makefile
7
Makefile
|
@ -1,5 +1,5 @@
|
|||
default: frontend ## Run app in debug mode
|
||||
cargo run
|
||||
default: frontend ## Build app in debug mode
|
||||
cargo build
|
||||
|
||||
clean: ## Delete build artifacts
|
||||
@cargo clean
|
||||
|
@ -56,6 +56,9 @@ migrate: ## Run database migrations
|
|||
release: frontend ## Build app with release optimizations
|
||||
cargo build --release
|
||||
|
||||
run: frontend ## Run app in debug mode
|
||||
cargo run
|
||||
|
||||
test: frontend-test frontend ## Run all available tests
|
||||
echo 'static/' && tree static || true
|
||||
echo 'tree/' && tree assets || true
|
||||
|
|
1
docs/openapi/.spectral.yaml
Normal file
1
docs/openapi/.spectral.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
extends: spectral:oas
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "mcaptcha-api",
|
||||
"name": "mcaptcha",
|
||||
"version": "0.1.0",
|
||||
"description": "This service is used to discover bridge interfaces that operate on forges.",
|
||||
"description": "mCaptcha CAPTCHA service's API",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "swagger-cli bundle openapi.yaml --outfile dist/openapi.yaml --type yaml",
|
||||
|
@ -12,16 +12,16 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/dat-adi/northstar.git"
|
||||
"url": "git+https://github.com/mCaptcha/mCaptcha.git"
|
||||
},
|
||||
"license": "AGPL3",
|
||||
"bugs": {
|
||||
"url": "https://github.com/dat-adi/northstar/issues"
|
||||
"url": "https://github.com/mCaptcha/mCaptcha/issues"
|
||||
},
|
||||
"homepage": "https://github.com/dat-adi/northstar#readme",
|
||||
"homepage": "https://github.com/mCaptcha/mCaptcha#readme",
|
||||
"dependencies": {
|
||||
"@apidevtools/swagger-cli": "^4.0.4",
|
||||
"@stoplight/spectral": "^5.8.1",
|
||||
"redoc-cli": "^0.10.3"
|
||||
"@stoplight/spectral": "^6.1.0",
|
||||
"redoc-cli": "^0.13.0"
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue