udpate deps and test openapi spec

This commit is contained in:
realaravinth 2021-11-29 17:32:33 +05:30
parent 6eb75d7a66
commit f2f8632679
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
6 changed files with 1213 additions and 909 deletions

700
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -28,21 +28,21 @@ members = [
] ]
[dependencies] [dependencies]
actix-web = "4.0.0-beta.8" actix-web = "4.0.0-beta.12"
actix = "0.12" actix = "0.12"
actix-identity = "0.4.0-beta.2" actix-identity = "0.4.0-beta.4"
actix-http = "3.0.0-beta.9" actix-http = "3.0.0-beta.13"
actix-rt = "2" actix-rt = "2"
actix-cors = "0.6.0-beta.2" actix-cors = "0.6.0-beta.4"
actix-service = "2.0.0" 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" mime_guess = "2.0.3"
rust-embed = "6.0.0" rust-embed = "6.0.0"
cache-buster = { git = "https://github.com/realaravinth/cache-buster" } cache-buster = { git = "https://github.com/realaravinth/cache-buster" }
futures = "0.3.15" 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" ] } sqlx = { version = "0.5.5", features = [ "runtime-actix-rustls", "postgres", "time", "offline" ] }
argon2-creds = { branch = "master", git = "https://github.com/realaravinth/argon2-creds"} 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] [dev-dependencies]
pow_sha256 = { version = "0.2.1", git = "https://github.com/mcaptcha/pow_sha256" } 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] [target.x86_64-unknown-linux-musl]

View file

@ -1,5 +1,5 @@
default: frontend ## Run app in debug mode default: frontend ## Build app in debug mode
cargo run cargo build
clean: ## Delete build artifacts clean: ## Delete build artifacts
@cargo clean @cargo clean
@ -56,6 +56,9 @@ migrate: ## Run database migrations
release: frontend ## Build app with release optimizations release: frontend ## Build app with release optimizations
cargo build --release cargo build --release
run: frontend ## Run app in debug mode
cargo run
test: frontend-test frontend ## Run all available tests test: frontend-test frontend ## Run all available tests
echo 'static/' && tree static || true echo 'static/' && tree static || true
echo 'tree/' && tree assets || true echo 'tree/' && tree assets || true

View file

@ -0,0 +1 @@
extends: spectral:oas

View file

@ -1,7 +1,7 @@
{ {
"name": "mcaptcha-api", "name": "mcaptcha",
"version": "0.1.0", "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", "main": "index.js",
"scripts": { "scripts": {
"build": "swagger-cli bundle openapi.yaml --outfile dist/openapi.yaml --type yaml", "build": "swagger-cli bundle openapi.yaml --outfile dist/openapi.yaml --type yaml",
@ -12,16 +12,16 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/dat-adi/northstar.git" "url": "git+https://github.com/mCaptcha/mCaptcha.git"
}, },
"license": "AGPL3", "license": "AGPL3",
"bugs": { "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": { "dependencies": {
"@apidevtools/swagger-cli": "^4.0.4", "@apidevtools/swagger-cli": "^4.0.4",
"@stoplight/spectral": "^5.8.1", "@stoplight/spectral": "^6.1.0",
"redoc-cli": "^0.10.3" "redoc-cli": "^0.13.0"
} }
} }

File diff suppressed because it is too large Load diff