From 29b76e69d32322e1cc7d20189bae4a5b0514720f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Wed, 14 Sep 2022 18:42:00 +0200 Subject: [PATCH] Update CI --- .github/workflows/ci.yml | 41 +++------------------------------------- Cargo.toml | 4 ++-- README.md | 12 +----------- src/lib.rs | 2 +- 4 files changed, 7 insertions(+), 52 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd1a960..ab39b7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,8 @@ jobs: fail-fast: false matrix: toolchain: - - "1.60" + - "1.55" + - "1.56" - stable - nightly platform: @@ -147,7 +148,7 @@ jobs: target: ${{ matrix.target }} - name: Test - run: cargo miri test --package tzdb --no-default-features --features by-name --target ${{ matrix.target }} -- --show-output + run: cargo miri test --package tzdb --target ${{ matrix.target }} -- --show-output doc: runs-on: ubuntu-20.04 @@ -191,42 +192,6 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - powerset: - strategy: - fail-fast: false - matrix: - toolchain: - - "1.60" - - stable - - nightly - platform: - - ubuntu-20.04 - # - windows-2022 - # - macos-12 - versions: - - "" - - "-Zminimal-versions" - - runs-on: ${{ matrix.platform }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup Rust - uses: ./.github/actions/setup-rust - with: - toolchain: ${{ matrix.toolchain }} - - - name: Install hack - run: cargo hack --version || cargo +stable install cargo-hack --force - - - run: cargo generate-lockfile ${{ matrix.versions }} - env: - RUSTC_BOOTSTRAP: 1 - - - name: Powerset - run: cargo hack test --feature-powerset --exclude-features default --ignore-private - build-cross: strategy: fail-fast: false diff --git a/Cargo.toml b/Cargo.toml index cd25ff7..bf4b5c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,8 +18,8 @@ utcnow = { version = "^0.2.1", default-features = false } [dev-dependencies] proptest = "=1" -test-strategy = "^0.2.0" -structmeta = "^0.1.5" +test-strategy = "=0.1.2" +structmeta = "=0.1.4" [features] default = ["std", "fallback"] diff --git a/README.md b/README.md index 3e8f1bc..10b8a9f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Kijewski/tzdb/CI?logo=github)](https://github.com/Kijewski/tzdb/actions/workflows/ci.yml) [![Crates.io](https://img.shields.io/crates/v/tzdb?logo=rust)](https://crates.io/crates/tzdb) -![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.60+-important?logo=rust "Minimum Supported Rust Version") +![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.55+-important?logo=rust "Minimum Supported Rust Version") [![License](https://img.shields.io/crates/l/tzdb?color=informational&logo=apache)](/LICENSES) Static time zone information for [tz-rs](https://crates.io/crates/tz-rs). @@ -38,16 +38,6 @@ let current_time = tzdb::now::in_named_or(tzdb::time_zone::GMT, "Some/City")?; ## Feature flags -* `by-name` (enabled by default, enabled by `local`) — enables `tz_by_name()` to get a time zone at runtime by name - -* `list` (enabled by default) — enables `TZ_NAMES` to get a list of all shipped time zones - -* `local` (enabled by default) — enables `local_tz()` to get the system time zone - -* `now` (enabled by default) — enables the module `now` to get the current time - -* `binary` – make the unparsed, binary tzdata of a time zone available - * `std` (enabled by default) – enable features that need the standard library `std` * `alloc` (enabled by default, enabled by `std`) – enable features that need the standard library `alloc` diff --git a/src/lib.rs b/src/lib.rs index 8606568..cff78a8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,7 @@ //! //! [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Kijewski/tzdb/CI?logo=github)](https://github.com/Kijewski/tzdb/actions/workflows/ci.yml) //! [![Crates.io](https://img.shields.io/crates/v/tzdb?logo=rust)](https://crates.io/crates/tzdb) -//! ![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.60+-important?logo=rust "Minimum Supported Rust Version") +//! ![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.55+-important?logo=rust "Minimum Supported Rust Version") //! [![License](https://img.shields.io/crates/l/tzdb?color=informational&logo=apache)](/LICENSES) //! //! Static time zone information for [tz-rs](https://crates.io/crates/tz-rs).