Skip to content

Commit 7facb1e

Browse files
committed
feat: introduce tokio fdb client api
Introduce Tokio FoundationDB client API. Code for `fdb-gen` and `fdb-sys` crates was imported from https://github.com/Clikengo/foundationdb-rs/tree/0.5.0 and adapted for `fdb` crate. This code is Apache/MIT dual licensed. The main authors according to `Cargo.toml` are: - "Benjamin Fry <[email protected]>" - "Jihyun Yu <[email protected]>" - "Vincent Rouillé <[email protected]>" The original git history has names of other authors and contributors. We would like to thank the contributors to `Clikengo/foundationdb-rs` project for their earlier effort and code.
1 parent 1ef0c22 commit 7facb1e

File tree

108 files changed

+23400
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+23400
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: pull_request-6_3_23
2+
3+
env:
4+
image_version: 6_3_23
5+
image_tag: bf3702eb91ef
6+
7+
on:
8+
pull_request:
9+
branches: ["main", "fdb-*.x"]
10+
11+
jobs:
12+
job-on-pull_request:
13+
runs-on: ubuntu-20.04
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
-
18+
name: Pull ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }} container
19+
run: |
20+
sudo podman pull ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }}
21+
-
22+
name: Start container
23+
run: |
24+
sudo podman run --name fdb --volume ${GITHUB_WORKSPACE}:/home/runner/fdb --rm ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }} &
25+
-
26+
name: Run 6.3/pull_request.sh
27+
run: |
28+
sudo podman exec --user runner:docker --workdir /home/runner/fdb/nix/ci --tty fdb nix develop .#pull_request-6_3_23 --command ./6.3/pull_request.sh
29+
-
30+
name: Run 6.3/pull_request_lcov.sh
31+
run: |
32+
sudo podman exec --user runner:docker --workdir /home/runner/fdb/nix/ci --tty fdb nix develop .#pull_request-nightly-6_3_23 --command ./6.3/pull_request_lcov.sh
33+
-
34+
name: Upload coverage to Codecov
35+
uses: codecov/codecov-action@v1
36+
with:
37+
files: lcov.info
38+
fail_ci_if_error: true
39+
-
40+
name: Stop container
41+
run: |
42+
sudo podman stop fdb

.github/workflows/push-6_3_23.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: push-6_3_23
2+
3+
env:
4+
image_version: 6_3_23
5+
image_tag: bf3702eb91ef
6+
7+
on:
8+
push:
9+
branches: ["main", "fdb-*.x"]
10+
11+
jobs:
12+
job-on-push:
13+
runs-on: ubuntu-20.04
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
-
18+
name: Pull ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }} container
19+
run: |
20+
sudo podman pull ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }}
21+
-
22+
name: Start container
23+
run: |
24+
sudo podman run --name fdb --volume ${GITHUB_WORKSPACE}:/home/runner/fdb --rm ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }} &
25+
-
26+
name: Run 6.3/push.sh
27+
run: |
28+
sudo podman exec --user runner:docker --workdir /home/runner/fdb/nix/ci --tty fdb nix develop .#push-6_3_23 --command ./6.3/push.sh
29+
-
30+
name: Run 6.3/push_lcov.sh
31+
run: |
32+
sudo podman exec --user runner:docker --workdir /home/runner/fdb/nix/ci --tty fdb nix develop .#push-nightly-6_3_23 --command ./6.3/push_lcov.sh
33+
-
34+
name: Upload coverage to Codecov
35+
uses: codecov/codecov-action@v1
36+
with:
37+
files: lcov.info
38+
fail_ci_if_error: true
39+
-
40+
name: Stop container
41+
run: |
42+
sudo podman stop fdb
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: push-rustdoc-6_3_23
2+
3+
env:
4+
image_version: 6_3_23
5+
image_tag: bf3702eb91ef
6+
7+
on:
8+
push:
9+
branches: ["main"]
10+
11+
jobs:
12+
job-on-push:
13+
runs-on: ubuntu-20.04
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
-
18+
name: Pull ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }} container
19+
run: |
20+
sudo podman pull ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }}
21+
-
22+
name: Start container
23+
run: |
24+
sudo podman run --name fdb --volume ${GITHUB_WORKSPACE}:/home/runner/fdb --rm ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }} &
25+
-
26+
name: Run 6.3/push_rustdoc.sh
27+
run: |
28+
sudo podman exec --user runner:docker --workdir /home/runner/fdb/nix/ci --tty fdb nix develop .#push_rustdoc-6_3_23 --command ./6.3/push_rustdoc.sh
29+
-
30+
name: Deploy docs
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_branch: gh-pages
35+
publish_dir: ./target/doc
36+
-
37+
name: Stop container
38+
run: |
39+
sudo podman stop fdb

.github/workflows/schedule-6_3_23.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: schedule-6_3_23
2+
3+
env:
4+
image_version: 6_3_23
5+
image_tag: bf3702eb91ef
6+
7+
# We adjust the number of iterations in `schedule.sh` so that the job
8+
# takes approximately 1 hour to finish. Jobs are scheduled at minute
9+
# 30.
10+
on:
11+
schedule:
12+
- cron: '30 * * * *'
13+
14+
jobs:
15+
job-on-schedule:
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
-
21+
name: Pull ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }} container
22+
run: |
23+
sudo podman pull ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }}
24+
-
25+
name: Start container
26+
run: |
27+
sudo podman run --name fdb --volume ${GITHUB_WORKSPACE}:/home/runner/fdb --rm ghcr.io/fdb-rs/fdb-${{ env.image_version }}:${{ env.image_tag }} &
28+
-
29+
name: Run 6.3/schedule.sh
30+
run: |
31+
sudo podman exec --user runner:docker --workdir /home/runner/fdb/nix/ci --tty fdb nix develop .#schedule-6_3_23 --command ./6.3/schedule.sh
32+
-
33+
name: Stop container
34+
run: |
35+
sudo podman stop fdb

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target
2+
Cargo.lock
3+
*.py[cod]

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[workspace]
2+
members = [
3+
"fdb",
4+
"fdb-gen",
5+
"fdb-stacktester/fdb-stacktester-630",
6+
"fdb-sys",
7+
]

fdb-gen/Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "fdb-gen"
3+
version = "0.1.0"
4+
edition = "2018"
5+
authors = ["fdb-rs Developers"]
6+
description = """
7+
Binding generation helper for FoundationDB
8+
"""
9+
10+
[features]
11+
default = []
12+
fdb-6_3 = []
13+
14+
[dependencies]
15+
xml-rs = "0.8.3"

0 commit comments

Comments
 (0)