-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6411468
Showing
30 changed files
with
54,579 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Setup Rust Environment | ||
|
||
inputs: | ||
key: | ||
description: Cache key | ||
required: true | ||
toolchain: | ||
description: Pass-through to toolchain on actions-rs | ||
default: stable | ||
required: false | ||
components: | ||
description: Pass-through to components on actions-rs | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Remove rustfmt | ||
run: rm -f ~/.cargo/bin/rustfmt ~/.cargo/bin/cargo-fmt | ||
shell: bash | ||
|
||
- name: Rustup Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.rustup/downloads | ||
~/.rustup/toolchains | ||
~/.rustup/update-hashes | ||
key: v5-rustup-${{ runner.os }} | ||
|
||
- name: Install Toolchain | ||
uses: dtolnay/rust-toolchain@v1 | ||
id: toolchain-install | ||
with: | ||
toolchain: ${{ inputs.toolchain }} | ||
components: ${{ inputs.components }} | ||
|
||
- name: Update self | ||
run: rustup self update || true | ||
shell: bash | ||
|
||
- name: Update | ||
run: rustup update || true | ||
shell: bash | ||
|
||
- name: Build Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
~/.cargo/bin/ | ||
target/ | ||
key: | | ||
v5-${{ inputs.key }}-${{ runner.os }}-${{ inputs.toolchain }}-${{ steps.toolchain-install.outputs.cachekey }}-${{ hashFiles('**/Cargo.toml', 'Cargo.lock') }} | ||
restore-keys: | | ||
v5-${{ inputs.key }}-${{ runner.os }}-${{ inputs.toolchain }}-${{ steps.toolchain-install.outputs.cachekey }}- | ||
v5-${{ inputs.key }}-${{ runner.os }}-${{ inputs.toolchain }}- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: ['main', 'v0.1.x'] | ||
pull_request: | ||
branches: ['main', 'v0.1.x'] | ||
schedule: | ||
- cron: "58 7 * * 3" | ||
|
||
jobs: | ||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: fmt | ||
toolchain: nightly | ||
components: rustfmt | ||
|
||
- run: cargo +nightly fmt --all -- --check | ||
|
||
check: | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- "1.55" | ||
- stable | ||
- nightly | ||
|
||
name: "Check/${{ matrix.toolchain }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: check | ||
toolchain: ${{ matrix.toolchain }} | ||
components: clippy | ||
|
||
- name: Check | ||
run: cargo +${{ matrix.toolchain }} check --package tzdb --all-targets | ||
|
||
- name: Lint | ||
run: cargo +${{ matrix.toolchain }} clippy --package tzdb --all-targets -- -D warnings | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- "1.55" | ||
- stable | ||
- nightly | ||
platform: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
|
||
name: "Test/${{ matrix.toolchain }} (${{ matrix.platform }})" | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: test | ||
toolchain: ${{ matrix.toolchain }} | ||
|
||
- name: Test | ||
run: cargo +${{ matrix.toolchain }} test --package tzdb --all-targets -- --show-output | ||
|
||
minimum-versions: | ||
name: "Minimal versions" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: minimum-versions | ||
toolchain: nightly | ||
|
||
- name: Update lockfile | ||
run: cargo generate-lockfile -Zminimal-versions | ||
|
||
- name: Test | ||
run: cargo +nightly test --all-targets -- --show-output | ||
|
||
miri: | ||
name: "Miri" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: miri | ||
toolchain: nightly | ||
components: miri | ||
|
||
- name: Test | ||
run: cargo +nightly miri test --package tzdb --all-targets -- --show-output | ||
|
||
doc: | ||
name: "Documentation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: name | ||
toolchain: nightly | ||
components: rust-docs | ||
|
||
- run: RUSTDOCFLAGS="-D warnings" cargo +nightly doc --package tzdb --features docsrs --all-features --no-deps | ||
|
||
audit: | ||
name: "Cargo audit" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: audit | ||
|
||
- run: cargo update | ||
|
||
- name: Audit | ||
uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
powerset: | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- "1.55" | ||
- stable | ||
- nightly | ||
platform: | ||
- ubuntu-latest | ||
|
||
name: "Feature powerset/${{ matrix.toolchain }} (${{ matrix.platform }})" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: powerset | ||
toolchain: ${{ matrix.toolchain }} | ||
|
||
- name: Install hack | ||
run: cargo +stable install cargo-hack --force | ||
|
||
- name: Powerset | ||
run: cargo +${{ matrix.toolchain }} hack test --feature-powerset --exclude-features docsrs --ignore-private --tests --lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: DevSkim | ||
|
||
on: | ||
push: | ||
branches: ['main', 'v0.1.x'] | ||
pull_request: | ||
branches: ['main', 'v0.1.x'] | ||
schedule: | ||
- cron: '24 14 * * 5' | ||
|
||
jobs: | ||
lint: | ||
name: DevSkim | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Run DevSkim scanner | ||
uses: microsoft/DevSkim-Action@v1 | ||
|
||
- name: Upload DevSkim scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: devskim-results.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/target | ||
/tmp | ||
|
||
run.cgi | ||
|
||
*.pyc | ||
*.swp* | ||
*.nfs* | ||
*~ | ||
*.~* | ||
*.tmp | ||
*.old | ||
*.bak | ||
*.orig | ||
*.pid | ||
*.so | ||
*.so.* | ||
*.cpp | ||
*.py[co] | ||
*.egg-info | ||
*.whl | ||
|
||
.* | ||
!.git* | ||
!.readthedocs.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
## Changes between the versions | ||
|
||
### 0.3.0 | ||
|
||
* Remove serde-as feature. The feature is very unrelated to goals of the crate, so it should be | ||
moved somewhere else | ||
* Split up `generated.rs` to speed up compilation if not all features are selected | ||
* Reduce msrv to 1.55 | ||
|
||
### 0.2.7 | ||
|
||
* Fix error if build and target platform have different pointer widths | ||
|
||
### 0.2.6 | ||
|
||
* Update [iana-time-zone](https://crates.io/crates/iana-time-zone) to implement | ||
[`local_tz()`](https://docs.rs/tzdb/0.2.6/tzdb/fn.local_tz.html) for | ||
Wasm ([#38](https://github.com/strawlab/iana-time-zone/pull/38)), and | ||
{Free,Net,Open,Dragonfly}BSD ([#39](https://github.com/strawlab/iana-time-zone/pull/39)) | ||
|
||
### 0.2.5 | ||
|
||
* Ensure `-Zminimal-versions` works | ||
|
||
### 0.2.4 | ||
|
||
* Fix missing import if the project is used with `default-features = false` | ||
|
||
### 0.2.3 | ||
|
||
* Fix lookup error for names containing underscores | ||
|
||
### 0.2.2 | ||
|
||
* Bump dependency versions | ||
|
||
### 0.2.1 | ||
|
||
* Fix typos | ||
* Introduce VERSION and VERSION_HASH | ||
|
||
### 0.2.0 | ||
|
||
* Update to 2022a | ||
* Make the unparsed binary time zone data available | ||
* Simplify the library by removing the trait TimeZoneExt: | ||
|
||
* TimeZoneExt::from_db() is now tz_by_name() | ||
* TimeZoneExt::local_from_db() is now local_tz() | ||
* TimeZoneExt::names_in_db() is now TZ_NAMES | ||
|
||
### 0.1.3 | ||
|
||
* Optimize DateTime deserialization to work without dynamic allocation | ||
([tz-rs#22](https://github.com/x-hgg-x/tz-rs/pull/22)) | ||
|
||
### 0.1.2 | ||
|
||
* Include “backzone” data to include pre-1970 information for some more time zones | ||
|
||
### 0.1.1 | ||
|
||
* Make UtcDateTime/DateTime serializable with serde using serde_with | ||
|
||
### 0.1.0 | ||
|
||
* Initial release |
Oops, something went wrong.