ngoni 0.1.11

capsule AWS processing, Payment processing in Rust
Documentation
MAKE_RECURSIVE_DIRS := openapi examples frontend proxy
SECRET_DIR_AGE := secret secret.age
export MAKE_RECURSIVE = time printf '%s\n' $(MAKE_RECURSIVE_DIRS) | xargs -IX sh -c '$(MAKE) -C X $@ || exit 255'

generate: # 前処理を行います。開発・本番問わず実行前に叩いてください
	cargo install --root out rebab mandolin
	cargo fmt
	bash -c "$${MAKE_RECURSIVE}"
run: # 開発用のサーバー起動コマンド フォアグラウンド実行されます Ctrl+Cで止まります
	MSYS_NO_PATHCONV=1 ./out/bin/rebab --frontend 127.0.0.1:8000 --rule "prefix=/api,port=7998,command=make -C examples run" --rule "port=7999,command=make -C frontend run"
deploy: # 本番用のサーバー起動コマンド バックグラウンド実行されます
	bash -c "$${MAKE_RECURSIVE}"
test:
	cargo test
doc:
	cargo doc --open
rage: # 暗号化
	tmp=$$(mktemp) && tar czvf $${tmp} -C $(firstword $(SECRET_DIR_AGE)) . && rage -p -o $(lastword $(SECRET_DIR_AGE)) $${tmp}
unrage: # 復号化
	type rage || cargo install rage
	ls $(firstword $(SECRET_DIR_AGE)) || ( mkdir -p $(firstword $(SECRET_DIR_AGE)) ; rage -d -o - $(lastword $(SECRET_DIR_AGE)) | tar xzv -C $(firstword $(SECRET_DIR_AGE)) )