Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
feat: Import Rust development settings from dbrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Aug 17, 2024
1 parent 2f946c1 commit 5b6bf18
Show file tree
Hide file tree
Showing 11 changed files with 992 additions and 49 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/nix-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "nix-test"
on:
pull_request:
push:
branches: [master]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: read

jobs:
check-flakes:
strategy:
matrix:
os: [ubuntu-24.04, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- run: nix build .
- run: nix flake check

check-docker-x86-64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- run: nix build .#docker
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ devenv.local.nix
# pre-commit
.pre-commit-config.yaml


# Added by cargo

/target
49 changes: 29 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ cargo-features = ["edition2024"]

[package]
name = "backend"
description = "The backend of Database Playground."
license-file = "LICENSE"
readme = "README.md"
repository = "https://github.com/database-playground/dbrunner-rs"
version = "0.1.0"
edition = "2024"
default-run = "backend"
publish = false

[dependencies]
anyhow = "1.0.86"
Expand All @@ -17,5 +22,8 @@ sqlx = { version = "0.8", features = [
"tls-rustls",
"postgres",
] }
tokio = { version = "1.39.2", features = ["full"] }
tokio = { version = "1.39.3", features = ["full"] }
tracing = "0.1.40"

[profile.release]
lto = "thin"
Loading

0 comments on commit 5b6bf18

Please sign in to comment.