Skip to content

Commit

Permalink
add implement
Browse files Browse the repository at this point in the history
  • Loading branch information
themanforfree committed Dec 13, 2022
1 parent 6aa0115 commit 9e99c36
Show file tree
Hide file tree
Showing 6 changed files with 782 additions and 1 deletion.
86 changes: 86 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: CI
on:
pull_request:
branches: [master]

jobs:
outdated:
name: Outdated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/[email protected]
with:
crate: cargo-outdated
version: latest
- run: cargo outdated

audit:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
crate: cargo-audit
use-tool-cache: true
- uses: actions-rs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test

fmt:
name: Fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings
16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
authors = ["DatenLord <[email protected]>"]
categories = ["tools"]
description = "rangeset that can merge overlap"
edition = "2021"
keywords = ["overlap", "range", "merge"]
license = "Apache-2.0"
name = "merged_range"
readme = "README.md"
repository = "https://github.com/datenlord/merged_range"
version = "0.1.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clippy-utilities = "0.2.0"
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# merged_range
# merged_range

A crate that can merge overlapping ranges
Loading

0 comments on commit 9e99c36

Please sign in to comment.