-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: init rust library * feat: build initial functionality of `FixedIndexVec` * chore: setup github actions & dependabot * chore: add clippy & fmt checks to workflow (#2) * chore: add clippy & fmt checks to workflow * chore: run ci on all pull requests, regardless of branch * chore: remove unnecessary conditions from workflow triggers (#3) * chore: remove unnecessary conditions from workflow triggers * fix: rename `workflows` directory * style: run `fmt` & `clippy` * chore: run workflow for all PRs and core branch merges * fix: correct workflow file syntax * chore: rename primary workflow & add badge to readme (#4) * feat: complete Rust API Checklist before publishing (#5) * chore: create changelog * chore: rename `enable-serde` feature to `serde` * feat: add derives or implementations of common traits * feat: add `From<HashMap` and `From<BTreeMap>` implementations * feat: implement `Extend` * test: validate Send and Sync implementations * chore: remove redundant `Cargo.toml` metadata * style: run clippy & fmt * chore: add `release-plz` workflow (#6)
- Loading branch information
Showing
7 changed files
with
149 additions
and
9 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
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: build | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run clippy | ||
run: cargo clippy --verbose -- -D warnings | ||
|
||
- name: Run fmt | ||
run: cargo fmt -- --check | ||
|
||
- name: Build | ||
run: cargo build --verbose | ||
|
||
- name: Run tests | ||
run: cargo test --verbose |
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,27 @@ | ||
name: Release-plz | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release-plz: | ||
name: Release-plz | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Run release-plz | ||
uses: MarcoIeni/release-plz-action@v0.5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
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,24 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.1.0] - 2023-12-11 | ||
### Added | ||
- Initial release | ||
- `FixedIndexVec` struct | ||
- `FixedIndexVec::new()` constructor | ||
- `FixedIndexVec::push(value)` method | ||
- `FixedIndexVec::insert(value)` method | ||
- `FixedIndexVec::remove(index)` method | ||
- `FixedIndexVec::get(index)` method | ||
- `FixedIndexVec::iter()` method | ||
- `FixedIndexVec::len()` method | ||
- `FixedIndexVec::is_empty()` method | ||
- `FixedIndexVec::clear()` method | ||
- `FixedIndexVec::reset()` method | ||
- `FixedIndexVec::next_index()` method | ||
- `FixedIndexVec::first()` method | ||
- `FixedIndexVec::last()` method |
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
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
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