diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3aa6c13..82c0be3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,6 +53,9 @@ jobs: - toolchain: stable features: js target: wasm32-unknown-unknown + - toolchain: '1.46.0' + crate_name: oauth1-request-test + - crate_name: oauth1-request steps: - uses: actions/checkout@v2 - name: Install Rust toolchain @@ -85,18 +88,18 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --verbose --tests --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' + args: --verbose --tests --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' - name: Check docs of `oauth1-request` if: matrix.features == 'js,derive' uses: actions-rs/cargo@v1 with: command: doc - args: --verbose --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' --no-deps + args: --verbose --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' --no-deps - name: Build `oauth1-request` uses: actions-rs/cargo@v1 with: command: build - args: --verbose --tests --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' + args: --verbose --tests --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' - name: Build `examples` if: ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }} uses: actions-rs/cargo@v1 @@ -104,10 +107,11 @@ jobs: command: build args: --verbose --manifest-path examples/Cargo.toml - name: Test `oauth1-request` + if: ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }} uses: actions-rs/cargo@v1 with: command: test - args: --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' + args: --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' derive-test: name: Test `oauth1-request-derive` runs-on: ubuntu-latest diff --git a/oauth1-request-test/Cargo.toml b/oauth1-request-test/Cargo.toml new file mode 100644 index 0000000..b6a543a --- /dev/null +++ b/oauth1-request-test/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "oauth-credentials-test" +version = "0.0.0" +authors = ["Daiki Mizukami "] +description = "A hack to make the CI work with older toolchains." +publish = false + +[dependencies] +oauth1-request = { path = "../oauth1-request", default-features = false } + +[features] +default = ["derive", "hmac-sha1", "std"] +alloc = ["oauth1-request/alloc"] +derive = ["oauth1-request/derive"] +hmac-sha1 = ["oauth1-request/hmac-sha1"] +rsa-sha1-06 = ["oauth1-request/rsa-sha1-06"] +rsa-sha1-09 = ["oauth1-request/rsa-sha1-09"] +js = ["oauth1-request/js"] +serde = ["oauth1-request/serde"] +std = ["oauth1-request/std"] +test = ["oauth1-request/test"] diff --git a/oauth1-request-test/src/lib.rs b/oauth1-request-test/src/lib.rs new file mode 100644 index 0000000..6a8b45c --- /dev/null +++ b/oauth1-request-test/src/lib.rs @@ -0,0 +1 @@ +pub use oauth_request::*;