Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Rust Lint, Clippy & Tests
on:
pull_request:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,7 +21,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Lint & Clippy
run: cargo fmt --check && cargo clippy -- -D warnings
run: cargo fmt --check && cargo clippy --all-targets --all-features -- -D warnings -W unused-crate-dependencies

- name: Tests
run: cargo test
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ license = "MIT OR Apache-2.0"
keywords = ["dune", "ethereum", "api-client", "web3", "dune-analytics"]

[dependencies]
chrono = { version = "0.4.42", features = ["serde"] }
chrono = { version = "0.4.43", features = ["serde"] }
dotenv = "0.15.0"
log = "0.4.29"
reqwest = { version = "0.12.28", features = ["json"] }
reqwest = { version = "0.13.2", features = ["json"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.148"
serde_with = "3.16.1"
tokio = { version = "1.48.0", features = ["full"] }
tokio = { version = "1.49.0", features = ["rt-multi-thread", "time", "macros"] }
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ mod tests {
use serde::Deserialize;

const QUERY_ID: u32 = 971694;
const JOB_ID: &str = "01K9QTN27XQTXQV59BKBJ4GKFW";
const JOB_ID: &str = "01KHDCT5QFS1QPE9T2QEWPEAGG";

#[tokio::test]
async fn invalid_api_key() {
Expand Down
2 changes: 2 additions & 0 deletions tests/example.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused_crate_dependencies)]

use chrono::{DateTime, Utc};
use duners::{
client::DuneClient, parameters::Parameter, parse_utils::datetime_from_str,
Expand Down