Skip to content

Commit

Permalink
Relax dependency version spec and update
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalica committed Feb 19, 2024
1 parent a119940 commit f62a239
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 17 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/future_proof.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Future proof tests
on:
schedule:
- cron: '21 1 * * 0' # Sun *-*-* 01:21:00 UTC

workflow_dispatch:

permissions:
contents: read

env:
RUST_BACKTRACE: full

jobs:
outdated:
name: Outdated
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install cargo-outdated
uses: dtolnay/install@cargo-outdated
- name: cargo-outdated
run: |
rm Cargo.lock # Ignore trivially updatable compatible versions.
cargo outdated --workspace --exit-code 1
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ beta = []

[dependencies]
# Compat with `reqwest`
bytes = "1.0.1"
reqwest = { version = "0.11.0", default-features = false, features = ["json", "gzip"] }
serde = { version = "1.0.102", features = ["derive"] }
serde_json = "1.0.41"
strum = { version = "0.24", features = ["derive"] }
thiserror = "1.0.15"
url = "2.2.0"
bytes = "1"
reqwest = { version = "0.11", default-features = false, features = ["json", "gzip"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
strum = { version = "0.26", features = ["derive"] }
thiserror = "1"
url = "2"

[package.metadata.docs.rs]
all-features = true
Expand Down
18 changes: 9 additions & 9 deletions onedrive-api-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.28"
anyhow = "1"
onedrive-api = { path = "..", features = ["beta"] }
open = "3"
open = "5"
pico-args = "0.5"
tokio = { version = "1.0.2", features = ["macros", "rt-multi-thread"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }

[dev-dependencies]
envy = "0.4.1"
lazy_static = "1.4.0"
rand = "0.8.2"
reqwest = "0.11.0"
serde = "1.0.104"
serde_json = "1.0.48"
envy = "0.4"
lazy_static = "1"
rand = "0.8"
reqwest = "0.11"
serde = "1"
serde_json = "1"
2 changes: 1 addition & 1 deletion src/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ macro_rules! define_resource_object {
/// More details in [mod documentation][mod].
///
/// [mod]: ./index.html
#[derive(Debug, Clone, Copy, Eq, PartialEq, strum::EnumVariantNames)]
#[derive(Debug, Clone, Copy, Eq, PartialEq, strum::VariantNames)]
#[strum(serialize_all = "camelCase")]
#[non_exhaustive]
#[allow(missing_docs, non_camel_case_types)]
Expand Down

0 comments on commit f62a239

Please sign in to comment.