Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Drainpipe over to Jetstream #203

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,390 changes: 203 additions & 1,187 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions packages-rs/drainpipe/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# This is only used outside of docker
DATABASE_URL="drainpipe.db"
FRONTPAGE_CONSUMER_URL="http://localhost:3000/api/receive_hook"
FRONTPAGE_CONSUMER_URL="http://localhost:3000/api/receive_hook"
2 changes: 2 additions & 0 deletions packages-rs/drainpipe/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/target

// TODO: we can maybe get rid of all the db bits???
drainpipe.db
drainpipe.db-shm
drainpipe.db-wal
Expand Down
20 changes: 3 additions & 17 deletions packages-rs/drainpipe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
[package]
name = "drainpipe"
version = "0.1.0"
version = "0.2.0"
edition = "2021"

[dependencies]
anyhow = "1.0.86"
chrono = { version = "0.4.38", features = ["serde"] }
ciborium = "0.2.2"
cid = { version = "0.11.1", features = ["serde-codec"] }
debug-ignore = "1.0.5"
diesel = { version = "2.2.0", features = ["sqlite"] }
diesel_migrations = "2.2.0"
dotenv-flow = "0.16.2"
futures = "0.3.30"
reqwest = { version = "0.12.4", features = ["json"] }
futures-util = "0.3"
serde = "1.0.203"
serde_bytes = "0.11.14"
serde_ipld_dagcbor = "0.6.1"
serde_json = { version = "1.0" }
tokio = { version = "1.38.0", features = ["full"] }
tokio-metrics = "0.3.1"
tokio-tungstenite = { version = "0.23.0", features = ["native-tls"] }
url = "2.5.0"

[dependencies.libsqlite3-sys]
version = "0.28"
features = ["bundled"]
2 changes: 2 additions & 0 deletions packages-rs/drainpipe/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM rust:1.78-alpine AS builder

# TODO: Figure out what we need to change here!

RUN apk add libressl-dev musl-dev sqlite-dev

WORKDIR /usr/src/unravel
Expand Down
9 changes: 0 additions & 9 deletions packages-rs/drainpipe/diesel.toml

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

75 changes: 0 additions & 75 deletions packages-rs/drainpipe/src/db.rs

This file was deleted.

140 changes: 0 additions & 140 deletions packages-rs/drainpipe/src/firehose.rs

This file was deleted.

Loading