acid

Crates.ioacid
lib.rsacid
version
sourcesrc
created_at2024-11-30 14:41:02.616418
updated_at2024-11-30 21:18:15.160587
descriptionAPI for acidarchive.com
homepagehttps://acidarchive.com
repositoryhttps://github.com/acidarchive/api
max_upload_size
id1466679
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(acidok)

documentation

https://acidarchive.com/docs/api

README

acidarchive.com api

acidarchive.com backend

Pre-requisites

# archlinux 
sudo pacman -S lld clang postgresql
# macos
brew install michaeleisel/zld/zld
cp .env.example .env
./scripts/init_db.sh
./scripts/init_redis.sh

Build

cargo build

Run

cargo run

API: http://localhost:8000

Docs: http://localhost:8000/docs/api

Test

cargo test

Development

./scripts/setup_hooks.sh
rustup component add clippy rustfmt

sqlx-cli

cargo install --version="~0.8.2" sqlx-cli --no-default-features --features rustls,postgres
cargo sqlx prepare -- --lib
cargo sqlx prepare -- --tests
Commit count: 39

cargo fmt