Skip to content

Commit b4eb4b4

Browse files
committed
feat: initial Rust crate for building sqlc plugins
- Add project structure with Cargo.toml and dependencies - Setup CI workflow with format, lint, build, and test steps - Configure Dependabot for daily dependency updates - Add protobuf schema for sqlc plugin communication - Implement build script for proto code generation - Create core library with plugin types and prelude module Signed-off-by: Svetlin Ralchev <iamralch@users.noreply.github.com>
1 parent 18aee16 commit b4eb4b4

File tree

11 files changed

+743
-0
lines changed

11 files changed

+743
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ["main"]
5+
pull_request:
6+
branches: ["main"]
7+
env:
8+
CARGO_TERM_COLOR: always
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Protoc
16+
uses: arduino/setup-protoc@v3
17+
- name: Format
18+
run: cargo fmt --check
19+
- name: Lint
20+
run: cargo clippy -- -D warnings
21+
- name: Build
22+
run: cargo build --verbose
23+
- name: Run tests
24+
run: cargo test --verbose

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ target
1919
# and can be added to the global gitignore or merged into this file. For a more nuclear
2020
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
2121
#.idea/
22+
23+
24+
# Added by cargo
25+
26+
/target

Cargo.lock

Lines changed: 355 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)